Skip to content

Commit 79252ec

Browse files
committed
workflows: nightly: run on PRs when either workflow or check_versions.py is modified
Run the nightly workflow on PRs when appropriate, but do a dry-run (i.e. don't actually try creating PRs) in this case so we don't open things during testing. AI-Generated: Uses Claude Sonnet 5 Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
1 parent eb1c6c2 commit 79252ec

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/nightly.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
schedule:
88
- cron: '0 2 * * *'
99
workflow_dispatch:
10+
pull_request:
11+
paths:
12+
- '.github/workflows/nightly.yml'
13+
- 'ci_scripts/check_versions.py'
1014

1115
permissions:
1216
contents: write
@@ -35,7 +39,7 @@ jobs:
3539
- name: Check versions and open PRs
3640
env:
3741
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
run: python3 ci_scripts/check_versions.py --summary --create-prs
42+
run: python3 ci_scripts/check_versions.py --summary${{ github.event_name != 'pull_request' && ' --create-prs' || '' }}
3943

4044
check_deprecated_packages:
4145
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)