Skip to content

Commit d5a8f03

Browse files
committed
[actions] fix labels removing
1 parent dbc2def commit d5a8f03

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/pr-labels.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ jobs:
1010
permissions:
1111
pull-requests: write # Grant permission to modify labels
1212
steps:
13+
# step 1: checkout repository code
14+
- name: Checkout code into workspace directory
15+
uses: actions/checkout@v4
16+
17+
# step 2: remove specific labels
1318
- name: Remove specific labels
14-
run: gh pr edit ${{ github.event.pull_request.number }} --remove-label "ready,deployed"
19+
run: |
20+
gh pr edit ${{ github.event.pull_request.number }} --remove-label "ready" || true
21+
gh pr edit ${{ github.event.pull_request.number }} --remove-label "deployed" || true
1522
env:
1623
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)