From b7ecc01c45a01a3a53c087eb0d0cee737bdf4efd Mon Sep 17 00:00:00 2001 From: Feist Josselin Date: Wed, 15 Feb 2023 10:53:15 +0100 Subject: [PATCH] Cancel action on new commits --- .github/workflows/IR.yml | 4 ++++ .github/workflows/black.yml | 4 ++++ .github/workflows/ci.yml | 4 ++++ .github/workflows/detectors.yml | 4 ++++ .github/workflows/docker.yml | 4 ++++ .github/workflows/doctor.yml | 4 ++++ .github/workflows/features.yml | 4 ++++ .github/workflows/linter.yml | 4 ++++ .github/workflows/parser.yml | 4 ++++ .github/workflows/pip-audit.yml | 4 ++++ .github/workflows/pylint.yml | 4 ++++ .github/workflows/read_storage.yml | 4 ++++ 12 files changed, 48 insertions(+) diff --git a/.github/workflows/IR.yml b/.github/workflows/IR.yml index 891de2bfb..ffb37462c 100644 --- a/.github/workflows/IR.yml +++ b/.github/workflows/IR.yml @@ -13,6 +13,10 @@ on: # run CI every day even if no PRs/merges occur - cron: '0 12 * * *' +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + jobs: build: name: IR tests diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index c820bea8f..9d4b387e2 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -15,6 +15,10 @@ on: # run CI every day even if no PRs/merges occur - cron: '0 12 * * *' +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + jobs: build: name: Black diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9913e487d..2f10b7b04 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,10 @@ on: # run CI every day even if no PRs/merges occur - cron: '0 12 * * *' +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + jobs: tests: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/detectors.yml b/.github/workflows/detectors.yml index 6b1f2df5e..9e3a8c383 100644 --- a/.github/workflows/detectors.yml +++ b/.github/workflows/detectors.yml @@ -13,6 +13,10 @@ on: # run CI every day even if no PRs/merges occur - cron: '0 12 * * *' +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + jobs: build: name: Detectors tests diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 76c18379e..d24d677c0 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -8,6 +8,10 @@ on: tags: - '*' +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + jobs: docker: runs-on: ubuntu-latest diff --git a/.github/workflows/doctor.yml b/.github/workflows/doctor.yml index b6124216a..c66f159df 100644 --- a/.github/workflows/doctor.yml +++ b/.github/workflows/doctor.yml @@ -12,6 +12,10 @@ on: - 'slither/tools/doctor/**' - '.github/workflows/doctor.yml' +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + jobs: slither-doctor: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/features.yml b/.github/workflows/features.yml index 5007fd7bf..c8fb5a0ec 100644 --- a/.github/workflows/features.yml +++ b/.github/workflows/features.yml @@ -13,6 +13,10 @@ on: # run CI every day even if no PRs/merges occur - cron: '0 12 * * *' +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + jobs: build: name: Features tests diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index a32c9cda6..e38440d79 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -16,6 +16,10 @@ on: # run CI every day even if no PRs/merges occur - cron: '0 12 * * *' +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + jobs: build: name: Pylint diff --git a/.github/workflows/parser.yml b/.github/workflows/parser.yml index e4ea82ef8..4e123705e 100644 --- a/.github/workflows/parser.yml +++ b/.github/workflows/parser.yml @@ -13,6 +13,10 @@ on: # run CI every day even if no PRs/merges occur - cron: '0 12 * * *' +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + jobs: build: name: Parser tests diff --git a/.github/workflows/pip-audit.yml b/.github/workflows/pip-audit.yml index 636093071..08ac37611 100644 --- a/.github/workflows/pip-audit.yml +++ b/.github/workflows/pip-audit.yml @@ -8,6 +8,10 @@ on: branches: [ dev, master ] schedule: [ cron: "0 7 * * 2" ] +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + jobs: audit: runs-on: ubuntu-latest diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 04334a2d5..9b24027f1 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -13,6 +13,10 @@ on: # run CI every day even if no PRs/merges occur - cron: '0 12 * * *' +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + jobs: build: name: Lint Code Base diff --git a/.github/workflows/read_storage.yml b/.github/workflows/read_storage.yml index 8a423d6c2..b38d5285e 100644 --- a/.github/workflows/read_storage.yml +++ b/.github/workflows/read_storage.yml @@ -13,6 +13,10 @@ on: # run CI every day even if no PRs/merges occur - cron: '0 12 * * *' +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + jobs: build: name: Test slither-read-storage