mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #779] github.event.head_commit is missing #488
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#488
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @szmarczak on GitHub (Aug 17, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/779
Originally assigned to: @catthehacker on GitHub.
System information
act:actversion:act version 0.2.24Expected behaviour
Should execute next steps.
Actual behaviour
Workflow and/or repository
https://github.com/apify/apify-js
Steps to reproduce
act -j build_and_testactoutputLog (TBD)
@brunowego commented on GitHub (Aug 23, 2021):
Related to #188
@lermana commented on GitHub (Oct 3, 2021):
I can confirm this is happening to me as well, by the way. For instance, I can define the following just fine:
However, this errors out:
Here's some of the output when run with
-v:Thank you for
act, by the way -- it's a great tool!@lermana commented on GitHub (Oct 3, 2021):
I want to follow up that a different thread provided a workaround (thanks @brunowego for linking!). The issue here is that
actruns off an emptyeventJSON, so you've got to provide your own if you want to access that data. You can see a working example (plus the rest of the conversation that led to it), here.Here's what I ran to allow for testing
ifon a commit message:@ricardo-dematos commented on GitHub (Aug 12, 2022):
This is how I'm working around the missing field, but since
actpopulates thegithub.sha, surely it can also populate thehead_commitfield. Right?