forked from spack/spack-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (48 loc) · 1.85 KB
/
triage.yml
File metadata and controls
54 lines (48 loc) · 1.85 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#-----------------------------------------------------------------------
# DO NOT modify unless you really know what you are doing.
#
# See https://stackoverflow.com/a/74959635 for more info.
# Talk to @alecbcs if you have questions/are not sure of a change's
# possible impact to security.
#-----------------------------------------------------------------------
name: triage
on:
pull_request_target:
branches:
- develop
jobs:
pr:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
issues: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: develop # DO NOT CHANGE
- uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
id: generate-spackbot-token
with:
app-id: ${{ secrets.SPACKBOT_TRIAGE_APP_ID }}
private-key: ${{ secrets.SPACKBOT_TRIAGE_PRIVATE_KEY }}
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
- uses: ./.github/actions/checkout-spack
- name: Install Python dependencies
run: pip install -r .github/workflows/requirements/triage/requirements.txt
- name: Label PR
run: |
python3 .github/workflows/bin/spack-labeler.py
env:
GH_PR_NUMBER: ${{ github.event.number }}
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ steps.generate-spackbot-token.outputs.token }}
LABELS_CONFIG: .github/labels.yml
- name: Tag Maintainers on PR
run: |
. spack-core/share/spack/setup-env.sh
spack-python .github/workflows/bin/spack-reviewers.py
env:
GH_PR_NUMBER: ${{ github.event.number }}
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ steps.generate-spackbot-token.outputs.token }}