Skip to content

Commit

Permalink
plugged the diff_migrations to the commenting step
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Oct 23, 2023
1 parent a05ac8c commit 8b2c3b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test_migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ jobs:
ENVIRONMENT: dev
- uses: ariga/setup-atlas@master
- name: export diff the migrations
run: atlas schema diff --from "maria://root:super_secret_passw0rd@localhost:3306/campus_db" --to "maria://root:super_secret_passw0rd@localhost:3300/campus_db" --format '{{ sql . " " }}'
id: diff_migrations
run: atlas schema diff --from "maria://root:super_secret_passw0rd@localhost:3306/campus_db" --to "maria://root:super_secret_passw0rd@localhost:3300/campus_db" --format '{{ sql . " " }}' >> $GITHUB_OUTPUT
- name: Find Comment
uses: peter-evans/find-comment@v2
id: fc
Expand All @@ -65,7 +66,7 @@ jobs:
Found the following differences in the sql schema:
<details>
<summary>To get from local migrations to auto migration state one would need to</summary>
create-or-update-comment, should edit the comment
${{join(steps.diff_migrations.outputs.*, '\n')}}
</details>
edit-mode: replace
reactions: eyes

0 comments on commit 8b2c3b0

Please sign in to comment.