Files
rocm-systems/.github/workflows/pr-auto-label-dispatcher.yml
T
Joseph Macaranas bac3beada7 [GitHub Actions] Change Auto-Label Trigger (#228)
- The execution of applying labels is now in a dispatched workflow that executes from the default branch and has access to the GitHub App to be able to write labels.
- New GitHub Actions to enable/toggle workflows from activating during import of subprojects.
- Workflows to add new subtrees to develop and release branches.
2025-08-09 21:59:57 -04:00

38 rindas
1.0 KiB
YAML

# Auto Label PR Dispatcher
# ------------------------
# This workflow is triggered by pull request events and sends a repository_dispatch event
# to the pr-auto-label workflow to handle label management.
# This allows the workflow to support pull requests from forks and main repository branches.
name: Auto Label PR Trigger
on:
pull_request_target:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- develop
- release/rocm-rel-7.*
concurrency:
group: pr-auto-label-dispatcher-${{ github.event.pull_request.number }}
cancel-in-progress: false
jobs:
trigger-dispatch:
runs-on: ubuntu-24.04
permissions:
contents: read
actions: write
steps:
- name: Send repository_dispatch to run labeling logic
env:
GH_TOKEN: ${{ github.token }}
run: |
gh api repos/${{ github.repository }}/dispatches \
-f event_type="pr-auto-label" \
-f client_payload='{"pr":"${{ github.event.pull_request.number }}"}'