Skip to content

Instantly share code, notes, and snippets.

@tschwaerzl
Created January 15, 2025 19:52
Show Gist options
  • Save tschwaerzl/91800789d31fde690fd5ef719df95263 to your computer and use it in GitHub Desktop.
Save tschwaerzl/91800789d31fde690fd5ef719df95263 to your computer and use it in GitHub Desktop.
Cancel all old GitHub Actions runs that are stale after a new version of the Pull Request was uploaded
# GitHub Action Workflow
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
# Source: https://turso.tech/blog/simple-trick-to-save-environment-and-money-when-using-github-actions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment