Skip to content

Commit 9feb44b

Browse files
committed
feat: remove trigger label
1 parent 55d0dfe commit 9feb44b

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/wiby.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,18 @@ jobs:
122122
env:
123123
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
124124

125+
- name: Clean up the trigger label
126+
if: ${{ always() }}
127+
uses: octokit/[email protected]
128+
with:
129+
route: DELETE /repos/:repository/issues/:issue_number/labels/:label_name
130+
repository: ${{ github.event.repository.full_name }}
131+
issue_number: ${{ github.event.pull_request.number }}
132+
label_name: ${{ github.event.label.name }}
133+
env:
134+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
135+
136+
125137
result:
126138

127139
runs-on: ubuntu-latest
@@ -208,3 +220,14 @@ jobs:
208220
conclusion: ${{ steps.wiby_result.outputs.wiby_conclusion }}
209221
env:
210222
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
223+
224+
- name: Clean up the trigger label
225+
if: ${{ always() }}
226+
uses: octokit/[email protected]
227+
with:
228+
route: DELETE /repos/:repository/issues/:issue_number/labels/:label_name
229+
repository: ${{ github.event.repository.full_name }}
230+
issue_number: ${{ github.event.pull_request.number }}
231+
label_name: ${{ github.event.label.name }}
232+
env:
233+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)