File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ permissions:
2121 contents : write
2222
2323jobs :
24- update-labels :
24+ commit-sqlx-changes :
2525 if : ${{ github.event.pull_request.merged }}
2626 runs-on : ubuntu-latest
2727 steps :
3535 with :
3636 prefix-key : ${{ env.RUST_CACHE_KEY }}
3737
38- - name : install SQLX CLI
39- run : cargo install sqlx-cli --no-default-features --features postgres
40-
41- - name : run database migrations
42- run : cargo sqlx migrate run --database-url $DOCSRS_DATABASE_URL
43-
44- - name : Commit sqlx changes on master branch if any
38+ - name : Launch postgres
4539 run : |
4640 cp .env.sample .env
4741 mkdir -p ${DOCSRS_PREFIX}/public-html
5145 # Make sure the database is actually working
5246 psql "${DOCSRS_DATABASE_URL}"
5347
48+ - name : install SQLX CLI
49+ run : cargo install sqlx-cli --no-default-features --features postgres
50+
51+ - name : Commit sqlx changes on master branch if any
52+ run : |
5453 just sqlx-prepare
5554 # If there are differences in the SQLX files, then we push them on the master branch
5655 if git status --porcelain .sqlx ; then
You can’t perform that action at this time.
0 commit comments