Skip to content

chore(workflows): allow dry-run release #55

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

Merged
merged 1 commit into from
Mar 3, 2023

Conversation

bendrucker
Copy link
Contributor

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:

gh workflow run 34990775 --ref test-push-false --field push=false
could not create workflow dispatch event: HTTP 422: Unexpected inputs provided: ["push"] (https://api.github.com/repos/observeinc/terraform-aws-lambda/actions/workflows/34990775/dispatches)

I've left behind @release-push in the workflow reference but this needs to be reverted as soon as we've verified that the push inputs works and can merge observeinc/.github#62.

@bendrucker bendrucker requested review from jta and aping1 as code owners March 3, 2023 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants