Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / .github / workflows / pr-subscriber.yml
blob99f9be771588d9ebf849af887023a3f5ff7b6060
1 name: PR Subscriber
3 on:
4   pull_request_target:
5     types:
6       - labeled
8 permissions:
9   contents: read
11 jobs:
12   auto-subscribe:
13     runs-on: ubuntu-latest
14     if: github.repository == 'llvm/llvm-project'
15     steps:
16       - name: Setup Automation Script
17         run: |
18           curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/main/llvm/utils/git/github-automation.py
19           curl -O -L --fail https://raw.githubusercontent.com/"$GITHUB_REPOSITORY"/main/llvm/utils/git/requirements.txt
20           chmod a+x github-automation.py
21           pip install -r requirements.txt
23       - name: Update watchers
24         run: |
25           ./github-automation.py \
26             --token '${{ secrets.ISSUE_SUBSCRIBER_TOKEN }}' \
27             pr-subscriber \
28             --issue-number "${{ github.event.number }}" \
29             --label-name "${{ github.event.label.name }}"