Skip to content

Commit

Permalink
ci/update: allow disabling re-applying commits
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MattSturgeon committed Feb 5, 2025
1 parent 61fdbe2 commit 5281e8c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
type: boolean
default: true
description: Update generated files
re_apply:
type: boolean
default: true
description: Re-apply additional commits from the PR

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

0 comments on commit 5281e8c

Please sign in to comment.