diff --git a/.github/workflows/check-codegen.yml b/.github/workflows/check-codegen.yml index 1f26cc96f..27297a6b1 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 062610355..501007340 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 522b87fbc..3cd90bc69 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 7fe08c5da..15157cede 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 cc25671e9..a61b21e51 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 3c62e2dae..f88e4a744 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 14462f607..a53c09cbc 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 549bb5957..136a6ab0c 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 ec86782e4..0302a039f 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 9d1987f27..54dc210da 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 05e844599..d743d6714 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 90c61ca49..85e59b1ba 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