Handle poorly configured streams #1865
Workflow file for this run
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: (util) Cleanup | |
on: | |
pull_request_target: | |
types: [labeled] | |
jobs: | |
clean-labels: | |
name: (util) Remove workflow trigger labels | |
runs-on: ubuntu-latest | |
if: contains(github.event.label.description, 'triggers_workflow') | |
env: | |
GITHUB_TOKEN: ${{ secrets.IDAES_BUILD_TOKEN }} | |
pull_number: ${{ github.event.pull_request.number }} | |
label_name: ${{ github.event.label.name }} | |
steps: | |
- name: Issue API call to remove label | |
run: | |
gh api --method DELETE "repos/$GITHUB_REPOSITORY/issues/$pull_number/labels/$label_name" |