Skip to content

Commit 4c8ab01

Browse files
committed
update condition
1 parent 7c71058 commit 4c8ab01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pr-deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
CODER_BASE_IMAGE_TAG: ${{ steps.set_tags.outputs.CODER_BASE_IMAGE_TAG }}
5252
CODER_IMAGE_TAG: ${{ steps.set_tags.outputs.CODER_IMAGE_TAG }}
5353
NEW: ${{ steps.check_deployment.outputs.new }}
54-
BUILD: ${{ steps.filter.outputs.all_count > steps.filter.outputs.ignored_count || steps.check_deployment.outputs.new || github.event.inputs.build == 'true' }}
54+
BUILD: ${{ steps.filter.outputs.all_count > steps.filter.outputs.ignored_count || steps.check_deployment.outputs.new }}
5555

5656
runs-on: "ubuntu-latest"
5757
steps:
@@ -163,7 +163,7 @@ jobs:
163163
build:
164164
needs: get_info
165165
# Run build job only if there are changes in the files that we care about or if the workflow is manually triggered with --force
166-
if: needs.get_info.outputs.BUILD == 'true'
166+
if: needs.get_info.outputs.BUILD == 'true' || github.event.inputs.build == 'true'
167167
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
168168
env:
169169
DOCKER_CLI_EXPERIMENTAL: "enabled"

0 commit comments

Comments
 (0)