mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-27 00:28:14 +00:00
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]>
36 lines
829 B
YAML
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
|