diff --git a/.github/workflows/check-codegen.yml b/.github/workflows/check-codegen.yml index 0d6ad37d0..0222f905c 100644 --- a/.github/workflows/check-codegen.yml +++ b/.github/workflows/check-codegen.yml @@ -11,6 +11,10 @@ on: - 'docs/**' - '**/*.md' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + permissions: contents: read diff --git a/.github/workflows/kustomize-validation.yml b/.github/workflows/kustomize-validation.yml index 76a659308..98e8b8e9f 100644 --- a/.github/workflows/kustomize-validation.yml +++ b/.github/workflows/kustomize-validation.yml @@ -11,6 +11,10 @@ on: - 'docs/**' - '**/*.md' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + permissions: contents: read diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0739d50cb..e15be85a6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,6 +11,10 @@ on: - 'docs/**' - '**/*.md' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + permissions: contents: read diff --git a/.github/workflows/publish-chart.yml b/.github/workflows/publish-chart.yml index 8e77e507d..3b8dfc878 100644 --- a/.github/workflows/publish-chart.yml +++ b/.github/workflows/publish-chart.yml @@ -19,6 +19,10 @@ on: - 'docs/**' - '**/*.md' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + permissions: contents: read packages: write diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index 42191398b..348e611cb 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -13,7 +13,7 @@ on: concurrency: group: pages - cancel-in-progress: false + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} permissions: contents: read diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index 8c112f957..adaf6ad9b 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -19,6 +19,10 @@ on: - 'docs/**' - '**/*.md' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + permissions: contents: read packages: write @@ -98,4 +102,3 @@ jobs: annotations: ${{ steps.meta.outputs.annotations }} cache-to: type=gha,mode=max cache-from: type=gha - diff --git a/.github/workflows/reuse.yaml b/.github/workflows/reuse.yaml index 2c69b1ee9..01ac413e2 100644 --- a/.github/workflows/reuse.yaml +++ b/.github/workflows/reuse.yaml @@ -17,6 +17,10 @@ on: - 'docs/**' - '**/*.md' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + permissions: contents: read diff --git a/.github/workflows/size-label.yml b/.github/workflows/size-label.yml index 44f66be26..680915ec2 100644 --- a/.github/workflows/size-label.yml +++ b/.github/workflows/size-label.yml @@ -9,6 +9,10 @@ on: - opened - synchronize +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + permissions: pull-requests: write diff --git a/.github/workflows/test-chart.yml b/.github/workflows/test-chart.yml index f292bb39d..291df077b 100644 --- a/.github/workflows/test-chart.yml +++ b/.github/workflows/test-chart.yml @@ -11,6 +11,10 @@ on: - 'docs/**' - '**/*.md' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + permissions: contents: read diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index 7c3f2af91..27e82b816 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -11,6 +11,10 @@ on: - 'docs/**' - '**/*.md' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + permissions: contents: read diff --git a/.github/workflows/test-gnmi.yaml b/.github/workflows/test-gnmi.yaml index d5f3d2bf4..aa6a2d5c7 100644 --- a/.github/workflows/test-gnmi.yaml +++ b/.github/workflows/test-gnmi.yaml @@ -16,6 +16,10 @@ on: - 'Makefile' - 'test/gnmi/testdata/**/*.txtar' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + permissions: contents: read @@ -36,4 +40,3 @@ jobs: go-version-file: 'go.mod' - name: Running gNMI tests run: make test-gnmi PROVIDER=${{ matrix.provider }} GINKGO_PROCS=$(nproc) - diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index fb675096b..d8192adc5 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -17,6 +17,10 @@ on: - 'docs/**' - '**/*.md' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} + permissions: actions: read contents: read