Show number of migrations added

This commit is contained in:
Manuel Bustillo 2025-01-24 08:51:02 +01:00
parent 644f35c57f
commit 139502c69a

@ -45,13 +45,12 @@ jobs:
env:
ALL_CHANGED_FILES: ${{ steps.changed-migration-files.outputs.all_changed_files }}
run: |
echo ${#ALL_CHANGED_FILES[@]}
for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed"
done
- run: |
git fetch origin ${{ github.event.pull_request.base.sha }}
migrations_added=$(git diff ${{ github.event.pull_request.base.sha }} --name-only db/migrate/ | wc -l)
echo "Migrations added: $migrations_added"
exit 1
bundle exec rake db:schema:load db:migrate:status db:migrate:redo
git diff --exit-code db/schema.rb
bundle exec rspec