From b8cd61ed35520f84ba3b3242af7bd4674c162ed0 Mon Sep 17 00:00:00 2001 From: BobTheBuidler Date: Sat, 17 Aug 2024 22:14:05 +0000 Subject: [PATCH] feat(gh): limit workflow concurrency --- .github/workflows/core-ganache-3.10.yaml | 5 +++++ .github/workflows/core-ganache-3.11.yaml | 5 +++++ .github/workflows/core-ganache-3.12.yaml | 5 +++++ .github/workflows/evm.yaml | 5 +++++ .github/workflows/functionality.yaml | 5 +++++ .github/workflows/lint.yaml | 5 +++++ 6 files changed, 30 insertions(+) diff --git a/.github/workflows/core-ganache-3.10.yaml b/.github/workflows/core-ganache-3.10.yaml index 8073c62cc..d4164c4f2 100644 --- a/.github/workflows/core-ganache-3.10.yaml +++ b/.github/workflows/core-ganache-3.10.yaml @@ -1,6 +1,11 @@ name: Core Ganache (py3.10) on: ["push", "pull_request"] +# This limits the workflow to 1 active run at any given time for a specific branch +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: ETHERSCAN_TOKEN: 9MKURTHE8FNA9NRUUJBHMUEVY6IQ5K1EGY GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/core-ganache-3.11.yaml b/.github/workflows/core-ganache-3.11.yaml index bb8775fe5..2536cb39b 100644 --- a/.github/workflows/core-ganache-3.11.yaml +++ b/.github/workflows/core-ganache-3.11.yaml @@ -1,6 +1,11 @@ name: Core Ganache (py3.11) on: ["push", "pull_request"] +# This limits the workflow to 1 active run at any given time for a specific branch +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: ETHERSCAN_TOKEN: 9MKURTHE8FNA9NRUUJBHMUEVY6IQ5K1EGY GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/core-ganache-3.12.yaml b/.github/workflows/core-ganache-3.12.yaml index 158fac1fa..60a3b04d9 100644 --- a/.github/workflows/core-ganache-3.12.yaml +++ b/.github/workflows/core-ganache-3.12.yaml @@ -1,6 +1,11 @@ name: Core Ganache (py3.12) on: ["push", "pull_request"] +# This limits the workflow to 1 active run at any given time for a specific branch +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: ETHERSCAN_TOKEN: 9MKURTHE8FNA9NRUUJBHMUEVY6IQ5K1EGY GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/evm.yaml b/.github/workflows/evm.yaml index e364b3f21..f5ed5071e 100644 --- a/.github/workflows/evm.yaml +++ b/.github/workflows/evm.yaml @@ -2,6 +2,11 @@ on: ["push", "pull_request"] name: evm tests +# This limits the workflow to 1 active run at any given time for a specific branch +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: ETHERSCAN_TOKEN: 9MKURTHE8FNA9NRUUJBHMUEVY6IQ5K1EGY GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/functionality.yaml b/.github/workflows/functionality.yaml index 34ec13af4..1494b6da2 100644 --- a/.github/workflows/functionality.yaml +++ b/.github/workflows/functionality.yaml @@ -2,6 +2,11 @@ on: ["push", "pull_request"] name: functionality +# This limits the workflow to 1 active run at any given time for a specific branch +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: ETHERSCAN_TOKEN: 9MKURTHE8FNA9NRUUJBHMUEVY6IQ5K1EGY GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 6a89de0b3..774df0ea8 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -2,6 +2,11 @@ on: ["push", "pull_request"] name: linting +# This limits the workflow to 1 active run at any given time for a specific branch +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: ETHERSCAN_TOKEN: 9MKURTHE8FNA9NRUUJBHMUEVY6IQ5K1EGY GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}