Skip to content

Commit 4652e38

Browse files
committed
ci/update: add input checkbox for checking nixpkgs was bumped
This is done by default when scheduled, but can be explicitly enabled when running manually.
1 parent c3d9524 commit 4652e38

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/update.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
type: boolean
1515
default: true
1616
description: Update generated files
17+
check_for_changes:
18+
type: boolean
19+
default: false
20+
description: Cancel if there are no changes to the `nixpkgs` input
1721

1822
# Allow one concurrent update per branch
1923
concurrency:
@@ -99,8 +103,7 @@ jobs:
99103
fi
100104
101105
- name: Check if nixpkgs input was changed
102-
# The check is run only on scheduled runs
103-
if: github.event_name == 'schedule'
106+
if: github.event_name == 'schedule' || inputs.check_for_changes
104107
env:
105108
pr_num: ${{ steps.open_pr_info.outputs.number }}
106109
pr_url: ${{ steps.open_pr_info.outputs.url }}

0 commit comments

Comments
 (0)