Skip to content
Prev Previous commit
Next Next commit
try treating values as string
  • Loading branch information
matifali committed Sep 21, 2023
commit 475e13231d9bce4c876b5c862941cd04d45f091f
13 changes: 11 additions & 2 deletions .github/workflows/pr-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
CODER_BASE_IMAGE_TAG: ${{ steps.set_tags.outputs.CODER_BASE_IMAGE_TAG }}
CODER_IMAGE_TAG: ${{ steps.set_tags.outputs.CODER_IMAGE_TAG }}
NEW: ${{ steps.check_deployment.outputs.NEW }}
BUILD: ${{ steps.build_conditionals.outputs.first_or_force_build || steps.build_conditionals.outputs.automatic_rebuild }}
BUILD: ${{ steps.build_conditionals.outputs.first_or_force_build == 'true' || steps.build_conditionals.outputs.automatic_rebuild == 'true' }}

runs-on: "ubuntu-latest"
steps:
Expand Down Expand Up @@ -164,7 +164,16 @@ 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


# - name: Set BUILD output
# id: set_build
# run: |
# set -euo pipefail
# if [[ "${{ steps.build_conditionals.outputs.first_or_force_build }}" == "true" || "${{ steps.build_conditionals.outputs.automatic_rebuild }}" == "true" ]]; then
# echo "BUILD=true" >> $GITHUB_OUTPUT
# else
# echo "BUILD=false" >> $GITHUB_OUTPUT
# fi
debug:
needs: get_info
runs-on: "ubuntu-latest"
Expand Down