Skip to content

fix: update BUILD condition in pr-deploy.yaml #9064

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Aug 13, 2023
Prev Previous commit
Next Next commit
fixup!
  • Loading branch information
matifali committed Aug 12, 2023
commit 227e28e65c992be9ce611b1312e3dca0a343ded1
7 changes: 3 additions & 4 deletions .github/workflows/pr-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,10 @@ jobs:
NEW: ${{ steps.check_deployment.outputs.NEW }}
BUILD: |
${{
(steps.filter.outputs.all_count > steps.filter.outputs.ignored_count) &&
(github.event.inputs.build == 'true' || (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')
(github.event_name == 'workflow_dispatch' && steps.check_deployment.outputs.NEW == 'true')
)
}}

Expand Down Expand Up @@ -173,7 +172,7 @@ jobs:
echo "CODER_BASE_IMAGE_TAG=${{ steps.set_tags.outputs.CODER_BASE_IMAGE_TAG }}"
echo "CODER_IMAGE_TAG=${{ steps.set_tags.outputs.CODER_IMAGE_TAG }}"
echo "NEW=${{ steps.check_deployment.outputs.NEW }}"
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')) }}"
echo "BUILD=${{ (github.event.inputs.build == 'true' || (steps.filter.outputs.all_count > steps.filter.outputs.ignored_count)) && ((github.event_name == 'push' && steps.check_deployment.outputs.NEW == 'false') || (github.event_name == 'workflow_dispatch' && steps.check_deployment.outputs.NEW == 'true')) }}"
echo "GITHUB_REF=${{ github.ref }}"

comment-pr:
Expand Down