Skip to content
Prev Previous commit
Next Next commit
more debugging
  • Loading branch information
matifali committed Sep 21, 2023
commit a2081ee3d11abec9066fc9e032fd86cd55d6d9a0
11 changes: 9 additions & 2 deletions .github/workflows/pr-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,18 @@ jobs:
echo "first_or_force_build=${{ (github.event_name == 'workflow_dispatch' && steps.check_deployment.outputs.NEW == 'true') || github.event.inputs.build == 'true' }}" >> $GITHUB_OUTPUT
# build if the deployment alreday exist and there are changes in the files that we care about (automatic updates)
echo "automatic_rebuild=${{ steps.check_deployment.outputs.NEW == 'false' && steps.filter.outputs.all_count > steps.filter.outputs.ignored_count }}" >> $GITHUB_OUTPUT
echo "BUILD = $($first_or_force_build || $automatic_rebuild)"

debug:
needs: get_info
runs-on: "ubuntu-latest"
steps:
- run: |
echo ${{ needs.get_info.outputs.BUILD }}
echo ${{ needs.get_info.outputs.BUILD == 'true' }}

comment-pr:
needs: get_info
if: needs.get_info.outputs.BUILD == 'true' || github.event.inputs.deploy == 'true'
if: needs.get_info.outputs.BUILD || github.event.inputs.deploy
runs-on: "ubuntu-latest"
steps:
- name: Find Comment
Expand Down