-
Notifications
You must be signed in to change notification settings - Fork 48
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
Feature Request - Specify commit SHA as input #77
Comments
This is undocumented but I think this should be supported by overriding the
|
I've tried this without luck! |
The default variables can't be overwritten. Would it be possible to add an input that defaults to Edit: I created a small test workflow to make sure name: Test setting GITHUB_SHA
on:
push:
branches:
- main
jobs:
setsha:
runs-on: ubuntu-22.04
steps:
- env:
GITHUB_SHA: c3965e3642bc6dafd857715ce4a120a30f1057cd
run: |
echo "$GITHUB_SHA" and, indeed, the environment value is just ignored/overwritten:
Notice how the printed value is different from what I try to set in the environment; it's the SHA of HEAD for the push event. |
Hey guys,
our team is using this action to create a release of our main branch, as soon as the version has been successfully deployed to production.
This would mean e.g. that if deployment is stuck the releases get bigger etc. which is intended.
The problem we are facing is, that the production deployment is triggered from another repository, so when calling your action we always end up with all commits of the latest main branch in the release.
This can cause inconsistency when a new commit comes in while the production deployment is running.
If you could provide an option to optionally override the commit sha here with an input, we could scope the release to our needs:
https://github.com/rymndhng/release-on-push-action/blob/master/src/release_on_push_action/core.clj#L37
Thanks in advance!
The text was updated successfully, but these errors were encountered: