From 5281e8c583a5fcdda7ca8373c7032bb9c5219ff3 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Thu, 30 Jan 2025 21:24:32 +0000 Subject: [PATCH] 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. --- .github/workflows/update.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index a15ea3f2..b43e0d6b 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -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: @@ -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