Skip to content

Commit

Permalink
chore(Github Actions): renamed or deleted migrations are exposed
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelromcar-parabol committed Nov 26, 2024
1 parent b783f55 commit 8b11c8f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/migration-order.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,11 @@ jobs:
echo "$FILE_NAME does not conflict with existing migrations on master"
fi
done
if ${{ steps.new-migrations.outputs.any_deleted }}; then
echo "${{ steps.new-migrations.outputs.deleted_files_count }} migration files where renamed or deleted. Please put their original names back or restore the following files:"
for file in ${{ steps.new-migrations.outputs.deleted_files }}; do
echo $(basename $file)
done
exit 1
fi

0 comments on commit 8b11c8f

Please sign in to comment.