remove-waiting-label #2397
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: remove-waiting-label | |
on: | |
workflow_run: | |
workflows: ["save-pr-number-for-removing-waiting-label"] | |
types: | |
- completed | |
permissions: | |
actions: read # for downloading artifacts | |
contents: read # for accessing repository contents | |
pull-requests: write # for removing labels from pull requests | |
jobs: | |
remove_label: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: Download PR number | |
uses: dawidd6/action-download-artifact@246dbf436b23d7c49e21a7ab8204ca9ecd1fe615 # v2.27.0 | |
with: | |
name: pr_number | |
path: ./ | |
run_id: ${{ github.event.workflow_run.id }} | |
- name: Read PR number | |
id: pr_number | |
run: echo "::set-output name=number::$(cat pr_number.txt)" | |
- name: Remove label | |
uses: actions-ecosystem/action-remove-labels@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
number: ${{ steps.pr_number.outputs.number }} | |
labels: | | |
Waiting for response or commit |