Fetch before diff
Some checks failed
Run unit tests / rubocop (pull_request) Successful in 23s
Run unit tests / unit_tests (pull_request) Failing after 1m45s
Run unit tests / build-static-assets (pull_request) Has been skipped
Run unit tests / check-licenses (pull_request) Successful in 43s
Run unit tests / copyright_notice (pull_request) Successful in 1m8s

This commit is contained in:
Manuel Bustillo 2025-01-24 00:50:12 +01:00
parent a12d60e7cb
commit 3651176bbd

View File

@ -35,6 +35,7 @@ jobs:
echo "Trying again"
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"
bundle exec rake db:schema:load db:migrate:status db:migrate:redo