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

On successful deployment to prod, cancel pending deployments #149

Open
BenjaminMichaelis opened this issue Jun 9, 2023 · 1 comment
Open

Comments

@BenjaminMichaelis
Copy link
Member

BenjaminMichaelis commented Jun 9, 2023

No description provided.

@BenjaminMichaelis
Copy link
Member Author

https://github.blog/changelog/2021-04-19-github-actions-limit-workflow-run-or-job-concurrency/

https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/control-the-concurrency-of-workflows-and-jobs

I think these are the key;

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

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