Skip to content

Commit 51e5955

Browse files
committed
[actions] checkout repo before labels edit
1 parent 89dbf84 commit 51e5955

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/pr-labels.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ 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
1419
run: gh pr edit ${{ github.event.pull_request.number }} --remove-label "ready,deployed"
1520
env:

0 commit comments

Comments
 (0)