Skip to content

Commit c632e1f

Browse files
authored
fix: update BUILD condition in pr-deploy.yaml
1 parent 6af6e85 commit c632e1f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/pr-deploy.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ jobs:
7878
(steps.filter.outputs.all_count > steps.filter.outputs.ignored_count) &&
7979
(
8080
(github.event_name == 'push' && steps.check_deployment.outputs.NEW == 'false') ||
81-
github.event.inputs.build == 'true'
81+
github.event.inputs.build == 'true' ||
82+
(github.event_name == 'workflow_dispatch' && steps.check_deployment.outputs.NEW == 'true')
8283
)
8384
}}
8485
@@ -172,7 +173,7 @@ jobs:
172173
echo "CODER_BASE_IMAGE_TAG=${{ steps.set_tags.outputs.CODER_BASE_IMAGE_TAG }}"
173174
echo "CODER_IMAGE_TAG=${{ steps.set_tags.outputs.CODER_IMAGE_TAG }}"
174175
echo "NEW=${{ steps.check_deployment.outputs.NEW }}"
175-
echo "BUILD=${{ (steps.filter.outputs.all_count > steps.filter.outputs.ignored_count) && ((github.event_name == 'push' && steps.check_deployment.outputs.NEW == 'false') || github.event.inputs.build == 'true') }}"
176+
echo "BUILD=${{ (steps.filter.outputs.all_count > steps.filter.outputs.ignored_count) && ((github.event_name == 'push' && steps.check_deployment.outputs.NEW == 'false') || github.event.inputs.build == 'true' || (github.event_name == 'workflow_dispatch' && steps.check_deployment.outputs.NEW == 'true')) }}"
176177
echo "GITHUB_REF=${{ github.ref }}"
177178
178179
comment-pr:

0 commit comments

Comments
 (0)