Skip to content

Commit dcfaa83

Browse files
GuillaumeGomezsyphar
authored andcommitted
Fix SQL CI task
1 parent 94b2f13 commit dcfaa83

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/commit-sqlx-changes.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ permissions:
2121
contents: write
2222

2323
jobs:
24-
update-labels:
24+
commit-sqlx-changes:
2525
if: ${{ github.event.pull_request.merged }}
2626
runs-on: ubuntu-latest
2727
steps:
@@ -35,13 +35,7 @@ jobs:
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
@@ -51,6 +45,11 @@ jobs:
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

0 commit comments

Comments
 (0)