Skip to content

Commit

Permalink
feat: remove trigger label
Browse files Browse the repository at this point in the history
  • Loading branch information
dominykas committed Sep 27, 2021
1 parent 55d0dfe commit 9feb44b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/wiby.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,18 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Clean up the trigger label
if: ${{ always() }}
uses: octokit/request-action@v2.x
with:
route: DELETE /repos/:repository/issues/:issue_number/labels/:label_name
repository: ${{ github.event.repository.full_name }}
issue_number: ${{ github.event.pull_request.number }}
label_name: ${{ github.event.label.name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


result:

runs-on: ubuntu-latest
Expand Down Expand Up @@ -208,3 +220,14 @@ jobs:
conclusion: ${{ steps.wiby_result.outputs.wiby_conclusion }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Clean up the trigger label
if: ${{ always() }}
uses: octokit/request-action@v2.x
with:
route: DELETE /repos/:repository/issues/:issue_number/labels/:label_name
repository: ${{ github.event.repository.full_name }}
issue_number: ${{ github.event.pull_request.number }}
label_name: ${{ github.event.label.name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9feb44b

Please sign in to comment.