mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
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:
parent
61fdbe2647
commit
5281e8c583
1 changed files with 5 additions and 1 deletions
6
.github/workflows/update.yml
vendored
6
.github/workflows/update.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue