diff --git a/.github/workflows/braket-latest-latest.yml b/.github/workflows/braket-latest-latest.yml index 41860db..182ae9d 100644 --- a/.github/workflows/braket-latest-latest.yml +++ b/.github/workflows/braket-latest-latest.yml @@ -10,6 +10,9 @@ on: - cron: '0 0 * * *' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-latest + cancel-in-progress: true env: PLUGIN_REPO: aws/amazon-braket-pennylane-plugin-python @@ -29,11 +32,6 @@ jobs: fail-fast: false steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/.github/workflows/braket-latest-rc.yml b/.github/workflows/braket-latest-rc.yml index eaa76f5..b8ff64c 100644 --- a/.github/workflows/braket-latest-rc.yml +++ b/.github/workflows/braket-latest-rc.yml @@ -10,6 +10,9 @@ on: - cron: '0 0 * * *' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-rc + cancel-in-progress: true env: PLUGIN_REPO: aws/amazon-braket-pennylane-plugin-python @@ -29,11 +32,6 @@ jobs: fail-fast: false steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/.github/workflows/braket-latest-stable.yml b/.github/workflows/braket-latest-stable.yml index d92a5df..9dedda5 100644 --- a/.github/workflows/braket-latest-stable.yml +++ b/.github/workflows/braket-latest-stable.yml @@ -10,6 +10,9 @@ on: - cron: '0 0 * * 0' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-stable + cancel-in-progress: true env: PLUGIN_REPO: aws/amazon-braket-pennylane-plugin-python @@ -29,11 +32,6 @@ jobs: fail-fast: false steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/.github/workflows/braket-stable-latest.yml b/.github/workflows/braket-stable-latest.yml index d456a6c..67dfb89 100644 --- a/.github/workflows/braket-stable-latest.yml +++ b/.github/workflows/braket-stable-latest.yml @@ -10,6 +10,9 @@ on: - cron: '0 0 * * *' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-latest + cancel-in-progress: true env: PLUGIN_REPO: aws/amazon-braket-pennylane-plugin-python @@ -29,11 +32,6 @@ jobs: fail-fast: false steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/.github/workflows/braket-stable-stable.yml b/.github/workflows/braket-stable-stable.yml index 5d3f910..d9320f0 100644 --- a/.github/workflows/braket-stable-stable.yml +++ b/.github/workflows/braket-stable-stable.yml @@ -10,6 +10,9 @@ on: - cron: '0 0 * * 0' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-stable + cancel-in-progress: true env: PLUGIN_REPO: aws/amazon-braket-pennylane-plugin-python @@ -29,11 +32,6 @@ jobs: fail-fast: false steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/.github/workflows/ionq-latest-latest.yml b/.github/workflows/ionq-latest-latest.yml index cc8dbcd..f0ed9f6 100644 --- a/.github/workflows/ionq-latest-latest.yml +++ b/.github/workflows/ionq-latest-latest.yml @@ -10,6 +10,9 @@ on: - cron: '0 0 * * *' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-latest + cancel-in-progress: true env: PLUGIN_REPO: PennyLaneAI/pennylane-ionq @@ -27,11 +30,6 @@ jobs: fail-fast: false steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/.github/workflows/ionq-latest-rc.yml b/.github/workflows/ionq-latest-rc.yml index 6925d0a..9c476ef 100644 --- a/.github/workflows/ionq-latest-rc.yml +++ b/.github/workflows/ionq-latest-rc.yml @@ -10,6 +10,9 @@ on: - cron: '0 0 * * *' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-rc + cancel-in-progress: true env: PLUGIN_REPO: PennyLaneAI/pennylane-ionq @@ -27,11 +30,6 @@ jobs: fail-fast: false steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/.github/workflows/ionq-latest-stable.yml b/.github/workflows/ionq-latest-stable.yml index 740fa24..3b689a7 100644 --- a/.github/workflows/ionq-latest-stable.yml +++ b/.github/workflows/ionq-latest-stable.yml @@ -10,6 +10,9 @@ on: - cron: '0 0 * * 0' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-stable + cancel-in-progress: true env: PLUGIN_REPO: PennyLaneAI/pennylane-ionq @@ -27,11 +30,6 @@ jobs: fail-fast: false steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/.github/workflows/ionq-stable-latest.yml b/.github/workflows/ionq-stable-latest.yml index 83e077e..222f067 100644 --- a/.github/workflows/ionq-stable-latest.yml +++ b/.github/workflows/ionq-stable-latest.yml @@ -10,6 +10,9 @@ on: - cron: '0 0 * * *' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-latest + cancel-in-progress: true env: PLUGIN_REPO: PennyLaneAI/pennylane-ionq @@ -27,11 +30,6 @@ jobs: fail-fast: false steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/.github/workflows/ionq-stable-stable.yml b/.github/workflows/ionq-stable-stable.yml index 8ec2bc3..9b43442 100644 --- a/.github/workflows/ionq-stable-stable.yml +++ b/.github/workflows/ionq-stable-stable.yml @@ -10,6 +10,9 @@ on: - cron: '0 0 * * 0' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-stable + cancel-in-progress: true env: PLUGIN_REPO: PennyLaneAI/pennylane-ionq @@ -27,11 +30,6 @@ jobs: fail-fast: false steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/.github/workflows/lightning-latest-rc.yml b/.github/workflows/lightning-latest-rc.yml index c73df9d..18d4434 100644 --- a/.github/workflows/lightning-latest-rc.yml +++ b/.github/workflows/lightning-latest-rc.yml @@ -10,6 +10,9 @@ on: - cron: '0 0 * * *' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-rc + cancel-in-progress: true env: PLUGIN_REPO: PennyLaneAI/pennylane-lightning @@ -29,11 +32,6 @@ jobs: pl_backend: ["lightning_qubit", "lightning_kokkos"] steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/.github/workflows/old-workflow b/.github/workflows/old-workflow index f9e7604..3436404 100644 --- a/.github/workflows/old-workflow +++ b/.github/workflows/old-workflow @@ -6,6 +6,9 @@ on: - cron: '0 0 * * *' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true env: PLUGIN_REPO: PennyLaneAI/pennylane-qiskit @@ -25,11 +28,6 @@ jobs: - {pennylane: git, plugin: pypi} steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/.github/workflows/qiskit-latest-latest.yml b/.github/workflows/qiskit-latest-latest.yml index 870cf18..032c937 100644 --- a/.github/workflows/qiskit-latest-latest.yml +++ b/.github/workflows/qiskit-latest-latest.yml @@ -10,6 +10,9 @@ on: - cron: '0 0 * * *' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-latest + cancel-in-progress: true env: PLUGIN_REPO: PennyLaneAI/pennylane-qiskit @@ -27,11 +30,6 @@ jobs: fail-fast: false steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/.github/workflows/qiskit-latest-rc.yml b/.github/workflows/qiskit-latest-rc.yml index 55cac65..18cd16d 100644 --- a/.github/workflows/qiskit-latest-rc.yml +++ b/.github/workflows/qiskit-latest-rc.yml @@ -10,6 +10,9 @@ on: - cron: '0 0 * * *' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-rc + cancel-in-progress: true env: PLUGIN_REPO: PennyLaneAI/pennylane-qiskit @@ -27,11 +30,6 @@ jobs: fail-fast: false steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/.github/workflows/qiskit-latest-stable.yml b/.github/workflows/qiskit-latest-stable.yml index 9e6cf84..9cdf9ba 100644 --- a/.github/workflows/qiskit-latest-stable.yml +++ b/.github/workflows/qiskit-latest-stable.yml @@ -10,6 +10,9 @@ on: - cron: '0 0 * * 0' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-stable + cancel-in-progress: true env: PLUGIN_REPO: PennyLaneAI/pennylane-qiskit @@ -27,11 +30,6 @@ jobs: fail-fast: false steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/.github/workflows/qiskit-stable-latest.yml b/.github/workflows/qiskit-stable-latest.yml index eaf1e5d..c2d3707 100644 --- a/.github/workflows/qiskit-stable-latest.yml +++ b/.github/workflows/qiskit-stable-latest.yml @@ -10,6 +10,9 @@ on: - cron: '0 0 * * *' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-latest + cancel-in-progress: true env: PLUGIN_REPO: PennyLaneAI/pennylane-qiskit @@ -27,11 +30,6 @@ jobs: fail-fast: false steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/.github/workflows/qiskit-stable-stable.yml b/.github/workflows/qiskit-stable-stable.yml index a01a8e3..ad24a02 100644 --- a/.github/workflows/qiskit-stable-stable.yml +++ b/.github/workflows/qiskit-stable-stable.yml @@ -10,6 +10,9 @@ on: - cron: '0 0 * * 0' workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-stable + cancel-in-progress: true env: PLUGIN_REPO: PennyLaneAI/pennylane-qiskit @@ -27,11 +30,6 @@ jobs: fail-fast: false steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: ${{ github.token }} - - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/workflow-template-latest.yml b/workflow-template-latest.yml index 12d36dd..bdc8dd7 100644 --- a/workflow-template-latest.yml +++ b/workflow-template-latest.yml @@ -10,6 +10,9 @@ on: - cron: '0 0 * * *' workflow_dispatch: +concurrency: + group: {% raw %}${{ github.workflow }}-${{ github.ref }}-latest{% endraw %} + cancel-in-progress: true env: PLUGIN_REPO: {{ gh_user }}/{{ plugin_repo }} @@ -32,11 +35,6 @@ jobs: fail-fast: false steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: {% raw %}${{ github.token }}{% endraw %} - - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/workflow-template-release-candidate.yml b/workflow-template-release-candidate.yml index cb7f290..4308610 100644 --- a/workflow-template-release-candidate.yml +++ b/workflow-template-release-candidate.yml @@ -10,6 +10,9 @@ on: - cron: '0 0 * * *' workflow_dispatch: +concurrency: + group: {% raw %}${{ github.workflow }}-${{ github.ref }}-rc{% endraw %} + cancel-in-progress: true env: PLUGIN_REPO: {{ gh_user }}/{{ plugin_repo }} @@ -32,11 +35,6 @@ jobs: fail-fast: false steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: {% raw %}${{ github.token }}{% endraw %} - - name: Set up Python uses: actions/setup-python@v2 with: diff --git a/workflow-template-stable.yml b/workflow-template-stable.yml index 37b8f36..e3021e4 100644 --- a/workflow-template-stable.yml +++ b/workflow-template-stable.yml @@ -10,6 +10,9 @@ on: - cron: '0 0 * * 0' workflow_dispatch: +concurrency: + group: {% raw %}${{ github.workflow }}-${{ github.ref }}-stable{% endraw %} + cancel-in-progress: true env: PLUGIN_REPO: {{ gh_user }}/{{ plugin_repo }} @@ -32,11 +35,6 @@ jobs: fail-fast: false steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.4.1 - with: - access_token: {% raw %}${{ github.token }}{% endraw %} - - name: Set up Python uses: actions/setup-python@v2 with: