chore(workflows): allow dry-run release #55
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Allows releasers to trigger a dry-run and not actually push any of the release content.
Motivation
We are getting unexpected output when generating the release content/version and need to be able to debug this without creating live releases every time.
https://github.com/observeinc/terraform-aws-lambda/actions/runs/4326680129/jobs/7554389442#step:3:89
Limitations
This can't be readily tested until it lands in
main
, because Actions won't process the workflow:https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo
You can dispatch on non-main branches, but the workflow content will be from the main branch:
I've left behind
@release-push
in the workflow reference but this needs to be reverted as soon as we've verified that thepush
inputs works and can merge observeinc/.github#62.