2024-07-06 16:43:53 +02:00
|
|
|
name: "Pull Request Labeler"
|
|
|
|
on:
|
2024-07-06 20:15:19 +02:00
|
|
|
pull_request_target:
|
2024-07-06 16:43:53 +02:00
|
|
|
types: [opened, synchronize]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
labeler:
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
pull-requests: write
|
2024-08-16 12:00:10 +02:00
|
|
|
workflows: write
|
2024-07-06 16:43:53 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-07-06 18:48:06 +02:00
|
|
|
- uses: actions/checkout@v4
|
2024-08-16 12:00:10 +02:00
|
|
|
|
|
|
|
- name: Apply Labels
|
|
|
|
uses: actions/labeler@v5
|
2024-07-06 16:43:53 +02:00
|
|
|
with:
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
configuration-path: .github/labeler-config.yml
|
|
|
|
sync-labels: true
|
2024-08-16 12:00:10 +02:00
|
|
|
|
|
|
|
- name: Trigger Build Workflow
|
|
|
|
run: |
|
|
|
|
curl -X POST \
|
|
|
|
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
|
|
|
-H "Accept: application/vnd.github+json" \
|
|
|
|
https://api.github.com/repos/${{ github.repository }}/dispatches \
|
|
|
|
-d '{"event_type": "trigger-build", "client_payload": {"pr_number": "${{ github.event.pull_request.number }}"}}'
|