mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 23:49:22 +08:00
This PR contains the following updates: | Package | Type | Update | Change | Pending | |---|---|---|---|---| | [actions/checkout](https://redirect.github.com/actions/checkout) | action | patch | `v6.0.0` -> `v6.0.1` | | | [actions/setup-node](https://redirect.github.com/actions/setup-node) | action | minor | `v6.0.0` -> `v6.1.0` | | | [github/codeql-action](https://redirect.github.com/github/codeql-action) | action | patch | `v4.31.5` -> `v4.31.6` | `v4.31.7` |
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
name: Issue Subscriber
|
|
|
|
on:
|
|
issues:
|
|
types:
|
|
- labeled
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
auto-subscribe:
|
|
runs-on: ubuntu-24.04
|
|
if: github.repository == 'llvm/llvm-project'
|
|
steps:
|
|
- name: Checkout Automation Script
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
with:
|
|
sparse-checkout: llvm/utils/git/
|
|
ref: main
|
|
|
|
- name: Setup Automation Script
|
|
working-directory: ./llvm/utils/git/
|
|
run: |
|
|
pip install --require-hashes -r requirements.txt
|
|
|
|
- name: Update watchers
|
|
working-directory: ./llvm/utils/git/
|
|
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
|
|
env:
|
|
LABEL_NAME: ${{ github.event.label.name }}
|
|
run: |
|
|
python3 ./github-automation.py \
|
|
--token '${{ secrets.ISSUE_SUBSCRIBER_TOKEN }}' \
|
|
issue-subscriber \
|
|
--issue-number '${{ github.event.issue.number }}' \
|
|
--label-name "$LABEL_NAME"
|