diff --git a/.github/workflows/google-cloudrun-docker.yml b/.github/workflows/google-cloudrun-docker.yml index a93c2d8..3bf29e5 100644 --- a/.github/workflows/google-cloudrun-docker.yml +++ b/.github/workflows/google-cloudrun-docker.yml @@ -96,21 +96,6 @@ jobs: -t "${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}/${{ env.SERVICE }}:${{ github.sha }}" ./ docker push "${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.PROJECT_ID }}/${{ env.SERVICE }}/${{ env.SERVICE }}:${{ github.sha }}" - - name: Get changed files in the docs folder - id: changed-files-specific - uses: tj-actions/changed-files@v34 - with: - files: migrations/** - - - name: Debug - List Changed Files - run: echo "${{ steps.changed-files-specific.outputs.any_changed }}" - - - name: Execute Cloud Run Migration Job - if: steps.changed-files-specific.outputs.any_changed == 'true' - run: | - gcloud run jobs execute migrate \ - --project ${{ env.PROJECT_ID }} \ - # END - Docker auth and build - name: Prepare Environment Variables for Deployment @@ -139,3 +124,18 @@ jobs: # If required, use the Cloud Run url output in later steps - name: Show Output run: echo ${{ steps.deploy.outputs.url }} + + - name: Get changed files in the docs folder + id: changed-files-specific + uses: tj-actions/changed-files@v34 + with: + files: migrations/** + + - name: Debug - List Changed Files + run: echo "${{ steps.changed-files-specific.outputs.any_changed }}" + + - name: Execute Cloud Run Migration Job + if: steps.changed-files-specific.outputs.any_changed == 'true' + run: | + gcloud run jobs execute migrate \ + --project ${{ env.PROJECT_ID }} \