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
testing
  • Loading branch information
matifali committed Aug 13, 2023
commit d0364da8c1736106f8588962d3b4a1a7b49b1fb9
13 changes: 7 additions & 6 deletions .github/workflows/pr-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ jobs:
BUILD: |
${{
github.event.inputs.build ||
(github.event_name == 'workflow_dispatch' && steps.check_deployment.outputs.NEW) ||
(github.event_name == 'push' && !steps.check_deployment.outputs.NEW && steps.filter.outputs.all_count > steps.filter.outputs.ignored_count) ||
(!steps.check_deployment.outputs.NEW && steps.filter.outputs.all_count > steps.filter.outputs.ignored_count)
(github.event_name == 'workflow_dispatch' && steps.check_deployment.outputs.NEW == 'true') ||
(github.event_name == 'push' && steps.check_deployment.outputs.NEW == 'false' && steps.filter.outputs.all_count > steps.filter.outputs.ignored_count) ||
(steps.check_deployment.outputs.NEW == 'false' && steps.filter.outputs.all_count > steps.filter.outputs.ignored_count)
}}

runs-on: "ubuntu-latest"
Expand Down Expand Up @@ -168,14 +168,15 @@ jobs:
echo "build_input: ${{ github.event.inputs.build }}"
echo "github_event_name: ${{ github.event_name }}"
echo "files_changed: ${{ steps.filter.outputs.all_count > steps.filter.outputs.ignored_count }}"
echo "test_condition: ${{ (github.event_name == 'workflow_dispatch' && steps.check_deployment.outputs.NEW == 'true') }}
echo "new_deployment: ${{ steps.check_deployment.outputs.NEW }}"
# The BUILD f this jon defined abobe using these inputs
echo "BUILD: |
${{
github.event.inputs.build ||
(github.event_name == 'workflow_dispatch' && steps.check_deployment.outputs.NEW) ||
(github.event_name == 'push' && !steps.check_deployment.outputs.NEW && steps.filter.outputs.all_count > steps.filter.outputs.ignored_count) ||
(!steps.check_deployment.outputs.NEW && steps.filter.outputs.all_count > steps.filter.outputs.ignored_count)
(github.event_name == 'workflow_dispatch' && steps.check_deployment.outputs.NEW == 'true') ||
(github.event_name == 'push' && steps.check_deployment.outputs.NEW == 'false' && steps.filter.outputs.all_count > steps.filter.outputs.ignored_count) ||
(steps.check_deployment.outputs.NEW == 'false' && steps.filter.outputs.all_count > steps.filter.outputs.ignored_count)
}}"

comment-pr:
Expand Down