Skip to content

Commit fa5fc82

Browse files
vaindclaude
andcommitted
refactor: replace cancel-workflow-action with native concurrency
Use GitHub's built-in concurrency control instead of third-party action. This eliminates the need for actions: write permission and simplifies the action implementation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4c53046 commit fa5fc82

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/workflow-tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
permissions:
88
contents: write
99
pull-requests: write
10-
actions: write
1110

1211
jobs:
1312
# Test PR creation scenario - should create a PR with specific version pattern

updater/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ on:
1515
branches:
1616
- main
1717

18+
# Cancel previous runs when new ones are triggered
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
1823
jobs:
1924
# Update a git submodule
2025
cocoa:

updater/action.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ runs:
5454
with:
5555
token: ${{ inputs.api-token }}
5656

57-
- name: Cancel Previous Runs
58-
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # Tag: 0.12.1
59-
with:
60-
access_token: ${{ github.token }}
61-
6257
- name: Validate dependency name
6358
shell: pwsh
6459
run: |

0 commit comments

Comments
 (0)