Commit db6c4d0 1 parent 2880658 commit db6c4d0 Copy full SHA for db6c4d0
File tree 2 files changed +11
-10
lines changed
2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 15
15
# hopefully this can be improved at some point; see this issue for details:
16
16
# https://github.com/actions/download-artifact/issues/60
17
17
- name : Download artifact
18
- uses : actions/github-script@v3.1.0
18
+ uses : actions/github-script@v7
19
19
with :
20
20
script : |
21
21
const artifacts = await github.actions.listWorkflowRunArtifacts({
@@ -50,15 +50,15 @@ jobs:
50
50
fi
51
51
52
52
- name : Find previous comment
53
- uses : peter-evans/find-comment@v1
53
+ uses : peter-evans/find-comment@v3
54
54
id : find-comment
55
55
with :
56
56
issue-number : ${{ steps.get-data.outputs.pull_id }}
57
57
body-includes : This PR contains database changes.
58
58
comment-author : github-actions[bot]
59
59
60
60
- name : Create comment
61
- uses : peter-evans/create-or-update-comment@v1
61
+ uses : peter-evans/create-or-update-comment@v4
62
62
if : steps.get-data.outputs.sql
63
63
with :
64
64
issue-number : ${{ steps.get-data.outputs.pull_id }}
75
75
version, i.e. any new column needs to have a `server_default` or be nullable.
76
76
77
77
- name : Delete comment
78
- uses : peter-evans/create-or-update-comment@v1
78
+ uses : peter-evans/create-or-update-comment@v4
79
79
if : steps.find-comment.outputs.comment-id && !steps.get-data.outputs.sql
80
80
with :
81
81
issue-number : ${{ steps.get-data.outputs.pull_id }}
Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
11
11
steps :
12
- - uses : actions/checkout@v2
12
+ - uses : actions/checkout@v4
13
13
14
14
- name : Setup Python
15
- uses : actions/setup-python@v2
15
+ uses : actions/setup-python@v5
16
16
with :
17
17
python-version : ' 3.12'
18
18
19
19
- name : Get list of created migrations
20
20
id : get-changed-files
21
- uses : ThiefMaster /changed-files-action@json-output
21
+ uses : umani /changed-files@v4.2.0
22
22
with :
23
23
repo-token : ${{ github.token }}
24
+ result-encoding : json
24
25
pattern : ' ^newdle/migrations/versions/.+\.py$'
25
26
26
27
- name : Check if any migrations changed
@@ -53,12 +54,12 @@ jobs:
53
54
- name : Print changed migrations
54
55
if : steps.migrations-changed.outputs.changed == 'true'
55
56
run : |
56
- first_migration=$(jq -r '.[0] // empty' ~/files_created.json )
57
- latest_migration=$(jq -r '.[-1] // empty' ~/files_created.json )
57
+ first_migration=$(echo '${{ steps.get-changed-files.outputs.files_created }}' | jq -r '.[0] // empty')
58
+ latest_migration=$(echo '${{ steps.get-changed-files.outputs.files_created }}' | jq -r '.[-1] // empty')
58
59
./ci/print_revision_sql.sh $first_migration $latest_migration > /tmp/migration-sql-data/upgrade.sql
59
60
60
61
- name : Create artifact
61
- uses : actions/upload-artifact@v2
62
+ uses : actions/upload-artifact@v4
62
63
with :
63
64
name : migration-sql-data
64
65
path : /tmp/migration-sql-data
You can’t perform that action at this time.
0 commit comments