Skip to content

Commit

Permalink
Merge pull request #61 from lsst-dm/tickets/DM-47507-migration-comment
Browse files Browse the repository at this point in the history
DM-47507: Preserve text after the ticket name in the migration comment
  • Loading branch information
JeremyMcCormick authored Nov 27, 2024
2 parents 38aeee3 + f1f93f2 commit 55de4cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/migrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ jobs:
run: |
export SDM_SCHEMAS_DIR=${{ github.workspace }}/sdm_schemas
echo "SDM_SCHEMAS_DIR=$SDM_SCHEMAS_DIR"
python alembic-autogenerate.py ${{ env.TICKET_NAME }}
MIGRATION_COMMENT=$(echo ${{ env.BRANCH_NAME }} | sed -E 's/^tickets\///')
python alembic-autogenerate.py $MIGRATION_COMMENT
if git diff --quiet; then
echo "No changes detected."
exit 0
Expand Down

0 comments on commit 55de4cb

Please sign in to comment.