llvm-project
37 строк · 1.0 Кб
1name: Issue Subscriber
2
3on:
4issues:
5types:
6- labeled
7
8permissions:
9contents: read
10
11jobs:
12auto-subscribe:
13runs-on: ubuntu-latest
14if: github.repository == 'llvm/llvm-project'
15steps:
16- name: Checkout Automation Script
17uses: actions/checkout@v4
18with:
19sparse-checkout: llvm/utils/git/
20ref: main
21
22- name: Setup Automation Script
23working-directory: ./llvm/utils/git/
24run: |
25pip install --require-hashes -r requirements.txt
26
27- name: Update watchers
28working-directory: ./llvm/utils/git/
29# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
30env:
31LABEL_NAME: ${{ github.event.label.name }}
32run: |
33python3 ./github-automation.py \
34--token '${{ secrets.ISSUE_SUBSCRIBER_TOKEN }}' \
35issue-subscriber \
36--issue-number '${{ github.event.issue.number }}' \
37--label-name "$LABEL_NAME"
38