Skip to content

Commit 7c90eb1

Browse files
committed
build-and-deploy: skip deployment check in "build-only" mode
When this workflow is run in "build-only" mode, we do not want to deploy the package and therefore it is not necessary to check whether the package has been deployed already. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent bccdffb commit 7c90eb1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
description: 'The package to build'
99
required: true
1010
build_only:
11-
description: 'Skip deployment (if non-empty)'
11+
description: 'Skip deployment (if "true")'
1212
required: false
1313
repo:
1414
description: 'The repo containing the package definition'
@@ -115,6 +115,7 @@ jobs:
115115
git -C /usr/src/$REPO reset --hard FETCH_HEAD
116116
117117
- name: check if the package was already deployed
118+
if: env.BUILD_ONLY != 'true'
118119
shell: bash
119120
run: |
120121
./update-scripts/ensure-not-yet-deployed.sh${{ env.ARCHITECTURE != '' && format(' --architecture={0}', env.ARCHITECTURE) || '' }} "/usr/src/$REPO/$PACKAGE_TO_BUILD"

0 commit comments

Comments
 (0)