mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #71] don't set GITHUB_SHA when working tree is unclean #44
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#44
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 @maxheld83 on GitHub (Jul 2, 2019).
Original GitHub issue: https://github.com/nektos/act/issues/71
it appears that even when the working tree is unclean, act sets the
GITHUB_SHAenv var to whatever the last git commit on that branch was.This seems friendly, but can lead to some pretty unexpected behavior, because AFAIK act actually runs with the unclean working tree, so the
GITHUB_SHAis actually kind of wrong.In any kind of situation where you're referencing something via
GITHUB_SHAthis can get weird (e.g. I amFROM:ing Docker images in the version of theGITHUB_SHA).I think it would be safer behavior to either:
GITHUB_SHAwhen the working tree is unclean@themightychris commented on GitHub (Oct 29, 2019):
In the spirit of act, it would be nice if you could run it against working trees, act could do something like this:
@themightychris commented on GitHub (Mar 18, 2020):
hey bot, this is still a good idea! And it has concrete implementation notes
@github-actions[bot] commented on GitHub (May 18, 2020):
Issue is stale and will be closed in 7 days unless there is new activity
@github-actions[bot] commented on GitHub (Jul 18, 2020):
Issue is stale and will be closed in 7 days unless there is new activity
@github-actions[bot] commented on GitHub (Sep 19, 2020):
Issue is stale and will be closed in 7 days unless there is new activity