-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix use of versioned github action #3762
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
@karl-johan-grahn I assume this works now, if you reference the action via You need a reviewer from this project, I can't help you with that. Seems like if action_ref is refs/pull/3762/head the wget breaks, but I'm probably only one of a very small amount of people trying very exotic action versions. |
@ssbarnea please review and any plans to merge this soon? 🙇 |
@ajinkyau @priyamsahoo @ChristopherHX @shatakshiiii @ssbarnea any possibility to merge this soon? |
Please look at actions/runner#2473 (comment), there is another defect in actions/runner. Only appears if you nest composite actions. FYI It is possible to add version information into the downloaded zip (act won't be compatible with that) like done here: psf/black#3543 |
Is the action nested for this repo's workflow? |
No, but the user can use the action in their own composite action and hit the problem. E.g. runs:
using: composite
steps:
- uses: ansible/[email protected] Will not get v6.21.1, but the tag of the action.yml posted above. |
At least it will be one step better than now |
[PR #707/874fbfed backport][stable-3] Update ansible-lint GHA This is a backport of PR #707 as merged into main (874fbfe). SUMMARY There seems to be a bug in older versions of ansible-lint where pinning to a version for the GHA still installs the main branch. See ansible/ansible-lint#3762 for more info. ISSUE TYPE Bugfix Pull Request COMPONENT NAME ADDITIONAL INFORMATION Reviewed-by: Mike Graves <[email protected]>
The README would need to be updated too because tagging the GitHub action runner won't work for earlier versions that this PR will eventually be part of - earlier versions will always use
main
. Updating the README has to be done after this PR has been merged though, since we don't know the version this fix will be part of.Fixes: #3761
Related: https://github.com/orgs/community/discussions/49245
Related: actions/runner#2473