]> source.dussan.org Git - gitblit.git/commitdiff
ci: Allow to force build a nightly version
authorFlorian Zschocke <f.zschocke+git@gmail.com>
Sun, 14 Nov 2021 11:03:46 +0000 (12:03 +0100)
committerFlorian Zschocke <f.zschocke+git@gmail.com>
Sun, 6 Feb 2022 14:05:17 +0000 (15:05 +0100)
Enable a switch for manual workflow triggering that overrides the check
if a new commits were made since the last build. If the input is set to
'true', a new build is run even when no new commits are present.

This is mainly so that changes to the gitblit-docker repo can be included
in builds. This could also be automated in the workflow, if need be.

.github/workflows/nightly-build.yml

index 409953420ab2c7658086a68b7a3ee3ff654c4903..ff6f4b8c6f244b68d4031b5a0f7524310c75123a 100644 (file)
@@ -63,7 +63,7 @@ jobs:
     name: build GO
     runs-on: ubuntu-latest
     needs: check_commits
-    if: ${{ needs.check_commits.outputs.build == 'true' }}
+    if: ${{ needs.check_commits.outputs.build == 'true' || github.event.inputs.forced == 'true' }}
 
     steps: