workflows/triage: skip recursive dependents for systemd
#9235
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: Manage pull request labels | |
on: | |
pull_request_target: | |
types: | |
- unlabeled | |
defaults: | |
run: | |
shell: bash -xeuo pipefail {0} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.label.name }} | |
cancel-in-progress: true | |
env: | |
GH_REPO: ${{ github.repository }} | |
GH_NO_UPDATE_NOTIFIER: 1 | |
GH_PROMPT_DISABLED: 1 | |
PR: ${{ github.event.number }} | |
jobs: | |
label: | |
permissions: | |
pull-requests: write # for `gh pr edit` | |
runs-on: ubuntu-latest | |
if: > | |
github.repository_owner == 'Homebrew' && | |
contains(fromJson('["workflows"]'), github.event.label.name) | |
steps: | |
- name: Re-label PR | |
run: gh pr edit "$PR" --add-label "$LABEL" --repo "$GITHUB_REPOSITORY" | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
LABEL: ${{ github.event.label.name }} |