diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 17f887d20e1..39947790904 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -7,6 +7,10 @@ on: branches: [main, "release/**"] workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + jobs: go_test_short: env: diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index fc1968ed487..69aa640518f 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -13,6 +13,10 @@ permissions: # Optional: allow read access to pull request. Use with `only-new-issues` option. pull-requests: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + jobs: golangci: name: lint diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 515691cafe1..706254182ff 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -11,6 +11,10 @@ on: - .github/labels.yml - .github/workflows/labels.yml +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + jobs: labeler: permissions: diff --git a/.github/workflows/libevm-delta.yml b/.github/workflows/libevm-delta.yml index cd146748178..950ea742735 100644 --- a/.github/workflows/libevm-delta.yml +++ b/.github/workflows/libevm-delta.yml @@ -7,6 +7,10 @@ on: branches: [main, "release/**"] workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + jobs: diffs: runs-on: ubuntu-latest diff --git a/.github/workflows/rename-module.yml b/.github/workflows/rename-module.yml index 2d74418cd61..d6e683d436d 100644 --- a/.github/workflows/rename-module.yml +++ b/.github/workflows/rename-module.yml @@ -9,6 +9,10 @@ on: type: string default: "2bd6bd01d2e8561dd7fc21b631f4a34ac16627a1" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + jobs: rename-module: runs-on: ubuntu-latest diff --git a/.github/workflows/yml.yml b/.github/workflows/yml.yml index de3da43dd52..ece1d125734 100644 --- a/.github/workflows/yml.yml +++ b/.github/workflows/yml.yml @@ -9,6 +9,10 @@ on: - ".github/workflows/yml.yml" - ".github/yamllint.yml" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + jobs: yaml-check: runs-on: ubuntu-latest