Files
clang-p2996/.github/workflows/issue-subscriber.yml
Tom Stellard a2adebf409 workflows: Make issue-subscriber more robust for labels with special characters
Also, replace the existing actionscript implementation with a python
script that can be run outside of GitHub Actions.  The intention is
that going forward, all github action functionality would be implemented
in this script.

Reviewed By: kwk

Differential Revision: https://reviews.llvm.org/D116762
2022-01-14 22:04:54 -08:00

26 lines
691 B
YAML

name: Issue Subscriber
on:
issues:
types:
- labeled
jobs:
auto-subscribe:
runs-on: ubuntu-latest
if: github.repository == 'llvm/llvm-project'
steps:
- name: Setup Automation Script
run: |
curl -O -L https://raw.githubusercontent.com/$GITHUB_REPOSITORY/$GITHUB_SHA/llvm/utils/git/github-automation.py
chmod a+x github-automation.py
pip install PyGithub
- name: Update watchers
run: |
./github-automation.py \
--token ${{ secrets.ISSUE_SUBSCRIBER_TOKEN }} \
issue-subscriber \
--issue-number ${{ github.event.issue.number }} \
--label-name ${{ github.event.label.name }}