diff --git a/.github/workflows/db-changes-var1.yaml b/.github/workflows/db-changes-var1.yaml index 56f1e5d..1607f19 100644 --- a/.github/workflows/db-changes-var1.yaml +++ b/.github/workflows/db-changes-var1.yaml @@ -20,14 +20,21 @@ jobs: with: files: "app/**" + - name: Determine Outcome + id: determine-outcome + run: | + echo "DB_CHANGE=${{ steps.changed-db-files.outputs.any_changed }}" >> $GITHUB_ENV + - name: Check Conditions id: check-conditions run: | - echo "DB_CHANGE=${{ steps.changed-db-files.outputs.any_changed }}" >> $GITHUB_ENV + if [[ "${{ env.DB_CHANGE }}" == "true" ]]; then + echo "Conditions met. Continue to the next job." + echo "true" > continue.txt run-alembic: needs: check-sql-schema-changes - if: needs.check-sql-schema-changes.DB_CHANGE == 'true' + if: ${{ needs.check-sql-schema-changes.outputs.continue == 'true' }} runs-on: ubuntu-latest services: