forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.01 KB
/
commit-access-greeter.yml
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
name: Commit Access Greeter
on:
issues:
types:
- labeled
permissions:
contents: read
jobs:
commit-access-greeter:
permissions:
issues: write
if: >-
github.repository_owner == 'llvm' &&
github.event.label.name == 'infra:commit-access-request'
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
sparse-checkout: llvm/utils/git/
- name: Setup Automation Script
working-directory: ./llvm/utils/git/
run: |
pip install --require-hashes -r requirements.txt
- name: Add comments to issue
working-directory: ./llvm/utils/git/
env:
LABEL_NAME: ${{ github.event.label.name }}
GITHUB_TOKEN: ${{ github.token }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
run: |
python3 ./github-automation.py \
--token $GITHUB_TOKEN \
commit-request-greeter \
--issue-number $ISSUE_NUMBER