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

chore(ci): cancel release workflow if new release is triggered #10370

Merged
merged 1 commit into from
May 20, 2024

Conversation

jonkoops
Copy link
Contributor

Cancels the release workflow if a new commit is pushed that could create failures if the workflows start competing for Git tags needed for release. This uses the concurrency feature in GitHub actions to automatically cancel any runs before the last.

Signed-off-by: Jon Koops <jonkoops@gmail.com>
@patternfly-build
Copy link
Contributor

patternfly-build commented May 15, 2024

@nicolethoen
Copy link
Contributor

This cancels other processes? or cancels this process if others are running?

@jonkoops
Copy link
Contributor Author

This will cancel any previous run that is active, so for example if PR A is merged and the release workflow starts, and then PR B is merged right after before the A run is completed, it will cancel A and then start B.

@tlabaj tlabaj requested review from nicolethoen and dlabaj May 16, 2024 14:04
@nicolethoen nicolethoen merged commit f8a3004 into patternfly:main May 20, 2024
13 checks passed
@patternfly-build
Copy link
Contributor

Your changes have been released in:

  • @patternfly/react-charts@7.4.0-prerelease.9
  • @patternfly/react-code-editor@5.4.0-prerelease.13
  • @patternfly/react-core@5.4.0-prerelease.13
  • @patternfly/react-docs@6.4.0-prerelease.19
  • @patternfly/react-drag-drop@5.4.0-prerelease.14
  • @patternfly/react-icons@5.4.0-prerelease.5
  • @patternfly/react-integration@5.1.1-prerelease.25
  • demo-app-ts@5.1.1-prerelease.114
  • @patternfly/react-styles@5.4.0-prerelease.5
  • @patternfly/react-table@5.4.0-prerelease.13
  • @patternfly/react-templates@1.1.0-prerelease.13
  • @patternfly/react-tokens@5.4.0-prerelease.4

Thanks for your contribution! 🎉

@jonkoops jonkoops deleted the cancel-release branch May 21, 2024 07:24
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.

3 participants