Skip to content

Commit 5281e8c

Browse files
committed
ci/update: allow disabling re-applying commits
Most of the time we want to re-apply "manual"/"additional" commits from the already open PR, however it is possible we may wish to run the CI without doing so. Add an on-by-default tickbox to toggle the `re_apply` step.
1 parent 61fdbe2 commit 5281e8c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/update.yml

Lines changed: 5 additions & 1 deletion
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+
re_apply:
18+
type: boolean
19+
default: true
20+
description: Re-apply additional commits from the PR
1721

1822
# Allow one concurrent update per branch
1923
concurrency:
@@ -134,7 +138,7 @@ jobs:
134138
135139
- name: Apply commits from the open PR
136140
id: re_apply
137-
if: steps.open_pr_info.outputs.number
141+
if: (inputs.re_apply || github.event_name == 'schedule') && steps.open_pr_info.outputs.number
138142
run: |
139143
# The base is the most recent commit on the remote branch by github-actions[bot]
140144
# This should be a flake.lock bump or a generated-files update

0 commit comments

Comments
 (0)