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.
This commit is contained in:
Matt Sturgeon 2025-01-30 21:24:32 +00:00
parent 61fdbe2647
commit 5281e8c583
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -14,6 +14,10 @@ on:
type: boolean type: boolean
default: true default: true
description: Update generated files description: Update generated files
re_apply:
type: boolean
default: true
description: Re-apply additional commits from the PR
# Allow one concurrent update per branch # Allow one concurrent update per branch
concurrency: concurrency:
@ -134,7 +138,7 @@ jobs:
- name: Apply commits from the open PR - name: Apply commits from the open PR
id: re_apply 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: | run: |
# The base is the most recent commit on the remote branch by github-actions[bot] # 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 # This should be a flake.lock bump or a generated-files update