diff --git a/.github/workflows/.schema-spy.yml b/.github/workflows/.schema-spy.yml index 899ba71..e100cc0 100644 --- a/.github/workflows/.schema-spy.yml +++ b/.github/workflows/.schema-spy.yml @@ -56,29 +56,33 @@ jobs: id: vars run: | echo "FLYWAY_IMAGE='docker://flyway/flyway:10'" - echo "FLYWAY_IMAGE=\'${{ inputs.flyway_image }}\'" - echo "FLYWAY_IMAGE=\'${{ inputs.flyway_image }}\'" >> $GITHUB_OUTPUT + echo "FLYWAY_IMAGE='${{ inputs.flyway_image }}'" + echo "FLYWAY_IMAGE='${{ inputs.flyway_image }}'" >> $GITHUB_OUTPUT - # - name: Flyway - # uses: ${{ steps.vars.outputs.FLYWAY_IMAGE }} - # env: - # FLYWAY_URL: jdbc:postgresql://postgres:5432/default - # FLYWAY_USER: postgres - # FLYWAY_PASSWORD: default - # FLYWAY_LOCATIONS: ${{ inputs.flyway_locations }} - # FLYWAY_DEFAULT_SCHEMA: ${{ inputs.flyway_schema }} - # with: - # args: ${{ inputs.flyway_args }} + - name: Check Vars + run: | + echo FLYWAY_IMAGE=${{ steps.vars.outputs.FLYWAY_IMAGE }} + + - name: Flyway + uses: "${{ steps.vars.outputs.FLYWAY_IMAGE }}" + env: + FLYWAY_URL: jdbc:postgresql://postgres:5432/default + FLYWAY_USER: postgres + FLYWAY_PASSWORD: default + FLYWAY_LOCATIONS: ${{ inputs.flyway_locations }} + FLYWAY_DEFAULT_SCHEMA: ${{ inputs.flyway_schema }} + with: + args: ${{ inputs.flyway_args }} - # - name: Create Output Folder - # run: | - # mkdir -p output/schema - # chmod a+rwx -R output + - name: Create Output Folder + run: | + mkdir -p output/schema + chmod a+rwx -R output - # - name: Run Schemaspy - # run: docker run --network host -v "$PWD/output:/output" schemaspy/schemaspy:6.2.4 -t pgsql11 -db default -host 127.0.0.1 -port 5432 -u postgres -p default -schemas ${{ inputs.schemaspy_schema }} + - name: Run Schemaspy + run: docker run --network host -v "$PWD/output:/output" schemaspy/schemaspy:6.2.4 -t pgsql11 -db default -host 127.0.0.1 -port 5432 -u postgres -p default -schemas ${{ inputs.schemaspy_schema }} - # - name: Deploy to Pages - # uses: JamesIves/github-pages-deploy-action@v4 - # with: - # folder: output + - name: Deploy to Pages + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: output