Files
AnyPS5/.github/workflows/pr-labels.yml
T
thuanquangandClaude Opus 5.5 baa581335f ci: give the PR label job 30 minutes
The first hourly pass over every open pull request after #5976 was
cancelled at the 10-minute limit (run 39160516271).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-20 02:49:30 +07:00

36 lines
829 B
YAML

name: PR labels
on:
pull_request_target:
branches: [main]
types: [opened, edited, reopened, synchronize]
schedule:
- cron: '45 * * * *'
workflow_dispatch:
permissions: {}
concurrency:
group: pr-labels-${{ github.event.pull_request.number || 'all' }}
jobs:
labels:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
pull-requests: write
issues: write
steps:
- uses: actions/checkout@v7
- env:
GH_TOKEN: ${{ github.token }}
GITHUB_REPOSITORY: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
if [ -n "$PR_NUMBER" ]; then
python3 -I tools/pr_labels.py --pr "$PR_NUMBER"
else
python3 -I tools/pr_labels.py --all
fi