From b1d5a4c81bbe29d585b70f0e3468c2dfacd43c05 Mon Sep 17 00:00:00 2001 From: Anshul Sahni Date: Tue, 14 Jun 2022 00:56:50 +0530 Subject: [PATCH] feat(workflow_id):example workflow added to test all keyword --- .github/workflows/cancel-all.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/cancel-all.yml diff --git a/.github/workflows/cancel-all.yml b/.github/workflows/cancel-all.yml new file mode 100644 index 00000000..3479637e --- /dev/null +++ b/.github/workflows/cancel-all.yml @@ -0,0 +1,20 @@ +name: Cancel All Workflows +on: push + +# Push again in the same branch +# automatically all the worklows will be cancelled +# To prevent this cancellation, comment this workflow +jobs: + task: + runs-on: ubuntu-latest + name: Task + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Test Step + uses: ./ # Uses an action in the root directory + with: + access_token: ${{github.sha}} + workflow_id: all + - uses: actions/setup-node@v3.3.0 + - run: echo 'Sleeping...'; sleep 120; echo 'Done.';