-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add a git-ref parameter to specify checkout git reference #26
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this, @SBGoods -- two minor adjustments and we should be able to get this in. 👍
Co-authored-by: Brian Flad <[email protected]>
Co-authored-by: Brian Flad <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
What?
This changes adds an optional git-ref parameter to both the Community and Hashicorp versions of the action. This allows users to optionally specify a specific branch, tag or SHA to checkout when using the Checkout Github Action. If this parameter is not used then the default behavior of using the reference or SHA that triggered the event or the default branch will be used.
Why?
This parameter is useful for release workflows that push changes to the repository and want to use this action in the same workflow. Since the default behavior is using the reference or SHA that triggered the workflow, if there is a change made to the remote during the workflow, it will not be captured during the checkout in this release action.