Update workflows #141
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SchemaCrawler Job to Create Schema Diagram | |
on: [push] | |
jobs: | |
schemacrawler-job: | |
runs-on: ubuntu-latest | |
name: SchemaCrawler Job to Create Schema Diagram | |
steps: | |
- id: checkout | |
name: Checkout repository | |
uses: actions/checkout@v4 | |
- id: schemacrawler | |
name: Run SchemaCrawler Action with specified command-line | |
uses: schemacrawler/[email protected] | |
with: | |
entrypoint: /schemacrawler.sh | |
args: --server=sqlite --database=schemacrawler.sqlite --user:env USER --password:env PASSWORD --info-level=standard --command=brief --output-file database-diagram.png --log-level CONFIG | |
env: | |
USER: user-possibly-from-secrets | |
PASSWORD: password-possibly-from-secrets | |
- id: upload-database-diagram | |
name: Upload SchemaCrawler database diagram | |
uses: actions/upload-artifact@v4 | |
with: | |
name: database-diagram | |
path: database-diagram.png | |
- id: check-success | |
name: Fail the entire job if SchemaCrawler run failed | |
run: | | |
[ ${{ env.SC_EXIT_STATUS }} -eq 0 ] && echo "SchemaCrawler run succeeded" || echo "SchemaCrawler run failed" | |
[ ${{ env.SC_EXIT_STATUS }} -eq 0 ] || exit 1 |