-
Notifications
You must be signed in to change notification settings - Fork 19
31 lines (27 loc) · 935 Bytes
/
on_opened_pr.yml
File metadata and controls
31 lines (27 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: On Opened PR
on:
workflow_run:
workflows: ["Record PR"]
types:
- completed
permissions:
contents: read
jobs:
get-pr-details:
permissions:
actions: read # download PR artifact
if: ${{ github.event.workflow_run.conclusion == 'success' }}
uses: OpenJobDescription/.github/.github/workflows/reusable_extract_pr_details.yml@mainline
with:
record_pr_workflow_id: ${{ github.event.workflow_run.id }}
artifact_name: "pr-info"
workflow_origin: ${{ github.repository }}
label-pr:
needs: get-pr-details
if: ${{ needs.get-pr-details.outputs.pr_action == 'opened' || needs.get-pr-details.outputs.pr_action == 'reopened' }}
uses: OpenJobDescription/.github/.github/workflows/reusable_label_pr.yml@mainline
with:
pr_number: ${{ needs.get-pr-details.outputs.pr_number }}
label_name: "waiting-on-maintainers"
permissions:
pull-requests: write