mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #101] Remote action not resolving version as github #64
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#64
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 @fennecdjay on GitHub (Feb 25, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/101
I not quite sure the title is clear, however I hope the example does a better jib at explaining the problem.
In some of my workflows, I have
It works fine on github, but when running with act, it complains about not finding the reference (it this case, ther is no v1, but github resolves it to the existing v1.0).
I looked at the code to see if I could find something helpful, but didn't find anything.
Looks like (this go library)[https://github.com/hashicorp/go-version] could do name resolving if we feed it the list of releases.
@cplee commented on GitHub (Feb 25, 2020):
I see that repo has a v1 branch and a v1.0 tag. Which are you expecting to be picked up, the tag or the branch?
@fennecdjay commented on GitHub (Feb 25, 2020):
Github picks
v1.0, and would pickv1.1if found.So that's what I would expect from act.
IMHO, that's what we should be expecting (I understand act as a local github action runner, so I suppose it should behave like github).
EDIT:
I think github targets releases first.
@cplee commented on GitHub (Feb 25, 2020):
Looks like GitHub has some code to pick defaults based on the situation you have here...but that isn't documented. The way they recommend versioning here is to use semver for each release, and UPDATE your major version tag (e.g.
v1) to point to the new semver release.So, in this case you ought to update your releases to be semver (e.g.
v1.0.1) and update your action to NOT have av1branch and instead to have av1tag that points to the commit ofv1.0.1.See setup-python as a good example
@fennecdjay commented on GitHub (Feb 25, 2020):
Thank you for the clarification!
Sorry it was my bad and not an act issue.
I'm closing this issue.
@wagenet commented on GitHub (May 13, 2020):
@cplee While this definitely seems to be the recommendation, it seems like act should follow what GitHub actually does. ruby/setup-ruby doesn't follow the recommendations, but it does work with GitHub Actions and not with act. I've filed an issue, but I don't control the repo so I have no timeline on when/if it will be resolved. https://github.com/ruby/setup-ruby/issues/55
@eregon commented on GitHub (May 13, 2020):
I think a moving tag is a
gitanti-pattern, and so I would recommend to handlev1being either a branch or a tag (they are bothgitrefs, and they both work withgit clone --branch REF).@eregon commented on GitHub (May 13, 2020):
I opened a new issue since this one was closed and the early discussion wasn't clear: https://github.com/nektos/act/issues/234