Skip to content

Instantly share code, notes, and snippets.

@Jammyjamjamman
Created May 13, 2022 21:34
Show Gist options
  • Save Jammyjamjamman/e8841c814c3e47651c09ea36c17d8f86 to your computer and use it in GitHub Desktop.
Save Jammyjamjamman/e8841c814c3e47651c09ea36c17d8f86 to your computer and use it in GitHub Desktop.
some snippets for github actions
# Cancel workflow if new workflow in same group is in progress.
# https://docs.github.com/en/enterprise-cloud@latest/actions/using-jobs/using-concurrency
name: Build
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
# allow only certain types of pull_request.
pull_request:
types: [ opened, reopened, synchronize ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment