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:
21
21
contents : write
22
22
23
23
jobs :
24
- update-labels :
24
+ commit-sqlx-changes :
25
25
if : ${{ github.event.pull_request.merged }}
26
26
runs-on : ubuntu-latest
27
27
steps :
35
35
with :
36
36
prefix-key : ${{ env.RUST_CACHE_KEY }}
37
37
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
45
39
run : |
46
40
cp .env.sample .env
47
41
mkdir -p ${DOCSRS_PREFIX}/public-html
51
45
# Make sure the database is actually working
52
46
psql "${DOCSRS_DATABASE_URL}"
53
47
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 : |
54
53
just sqlx-prepare
55
54
# If there are differences in the SQLX files, then we push them on the master branch
56
55
if git status --porcelain .sqlx ; then
You can’t perform that action at this time.
0 commit comments