diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a0d02e50c..5fe98d5ff 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,6 +10,10 @@ on: branches: [ main ] merge_group: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: build-client: name: "PhotonClient Build" diff --git a/.github/workflows/photon-code-docs.yml b/.github/workflows/photon-code-docs.yml index d5e3bfab3..02f2576bc 100644 --- a/.github/workflows/photon-code-docs.yml +++ b/.github/workflows/photon-code-docs.yml @@ -10,16 +10,16 @@ on: branches: [ main ] merge_group: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: contents: read pages: write id-token: write -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - jobs: build-client: name: "PhotonClient Build" diff --git a/.github/workflows/photonvision-docs.yml b/.github/workflows/photonvision-docs.yml index 3b580f9d6..5eda25b3d 100644 --- a/.github/workflows/photonvision-docs.yml +++ b/.github/workflows/photonvision-docs.yml @@ -7,6 +7,10 @@ on: branches: [ master ] merge_group: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 345c5399a..b5e58e6cf 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -12,6 +12,10 @@ on: branches: [ master ] merge_group: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: buildAndDeploy: runs-on: ubuntu-22.04