From 43268cc415ce019e0109b1e040846a9a89e38d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Mon, 12 Apr 2021 12:15:07 +0200 Subject: [PATCH 1/5] chore: update `action.yml` --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index b9dc2c9a..b363776d 100644 --- a/action.yml +++ b/action.yml @@ -15,10 +15,10 @@ inputs: access_token: description: 'Your GitHub Access Token, defaults to: {{ github.token }}' default: '${{ github.token }}' - required: true + required: false all_but_latest: description: "Cancel all actions but the last one" required: false runs: - using: 'node12' + using: 'node14' main: 'dist/index.js' From ee123d9f149ce22966e47cd0dd34e64d4f678b2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Wed, 14 Apr 2021 12:29:40 +0200 Subject: [PATCH 2/5] Update index.ts --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index bb6783cd..7a8a1c2f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -30,7 +30,7 @@ async function main() { } console.log({ eventName, sha, headSha, branch, owner, repo, GITHUB_RUN_ID }); - const token = core.getInput('access_token', { required: true }); + const token = core.getInput('access_token'); const workflow_id = core.getInput('workflow_id', { required: false }); const ignore_sha = core.getInput('ignore_sha', { required: false }) === 'true'; const all_but_latest = core.getInput('all_but_latest', { required: false }); From 3355f0bcda994fafa6598ea93f17cd28b36c33c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Wed, 14 Apr 2021 13:50:56 +0200 Subject: [PATCH 3/5] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index b363776d..26c6a60f 100644 --- a/action.yml +++ b/action.yml @@ -14,7 +14,7 @@ inputs: default: false access_token: description: 'Your GitHub Access Token, defaults to: {{ github.token }}' - default: '${{ github.token }}' + default: ${{ github.token }} required: false all_but_latest: description: "Cancel all actions but the last one" From 0ac0008e603cbad902507fd82036471b9cc71d59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Sun, 23 May 2021 01:20:26 +0200 Subject: [PATCH 4/5] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 26c6a60f..c17737ad 100644 --- a/action.yml +++ b/action.yml @@ -20,5 +20,5 @@ inputs: description: "Cancel all actions but the last one" required: false runs: - using: 'node14' + using: 'node12' main: 'dist/index.js' From 26b717ad557e7ad2a69b9e9db394f4fe156ae4da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Fri, 30 Sep 2022 11:41:05 +0200 Subject: [PATCH 5/5] Update README.md --- README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/README.md b/README.md index 7e5287cd..f3588474 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,6 @@ jobs: steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.9.0 - with: - access_token: ${{ github.token }} #- name: Run Tests # uses: actions/setup-node@v1 # run: node test.js @@ -49,7 +47,6 @@ jobs: - uses: styfle/cancel-workflow-action@0.9.0 with: workflow_id: 479426 - access_token: ${{ github.token }} ``` - _Note_: `workflow_id` can be a Workflow ID (number) or Workflow File Name (string) @@ -118,7 +115,6 @@ jobs: - uses: styfle/cancel-workflow-action@0.9.0 with: all_but_latest: true - access_token: ${{ github.token }} ``` ## Contributing