diff options
author | metagn <metagngn@gmail.com> | 2022-09-15 18:17:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-15 23:17:35 +0800 |
commit | 3e83c4a168e55880af45273b9c6bc07d78a7d863 (patch) | |
tree | 25de68fe2447393d2d81bf2bdf64ccb7ea758604 /.github | |
parent | 2b80ff2374fce1610d366654d2afd570381ab4c0 (diff) | |
download | Nim-3e83c4a168e55880af45273b9c6bc07d78a7d863.tar.gz |
only run github CI on latest commit of branch/PR (#20361)
based on [this](https://stackoverflow.com/a/72408109/10633874)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci_docs.yml | 4 | ||||
-rw-r--r-- | .github/workflows/ci_packages.yml | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/ci_docs.yml b/.github/workflows/ci_docs.yml index 4725be456..6228c48c8 100644 --- a/.github/workflows/ci_docs.yml +++ b/.github/workflows/ci_docs.yml @@ -30,6 +30,10 @@ on: - '.github/workflows/ci_docs.yml' - 'koch.nim' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: build: strategy: diff --git a/.github/workflows/ci_packages.yml b/.github/workflows/ci_packages.yml index 1bb4438d8..86843d420 100644 --- a/.github/workflows/ci_packages.yml +++ b/.github/workflows/ci_packages.yml @@ -7,6 +7,10 @@ on: - 'version-1-6' - 'version-1-2' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: build: strategy: |