Skip to content
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

CI: Prevent a double automatic release #638

Open
jiribenes opened this issue Oct 14, 2024 · 0 comments
Open

CI: Prevent a double automatic release #638

jiribenes opened this issue Oct 14, 2024 · 0 comments

Comments

@jiribenes
Copy link
Contributor

jiribenes commented Oct 14, 2024

In .github/workflows/autorelease.yml, before making a new release:

  1. get the version number of the current release
  2. find the appropriate git tag for the current release
  3. check that the git tag points to something else than master does
    • if not, exit successfully: no release will be made
    • also, do this check only if we're on the automatic release, not if the workflow was manual
  4. continue with releasing (bumping the version, etc...)

We could also be even smarter and check if the changes since the last release are more than just changes in .github/ :)

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

No branches or pull requests

1 participant