Use PR base SHA
Some checks failed
Run unit tests / copyright_notice (pull_request) Successful in 55s
Run unit tests / check-licenses (pull_request) Successful in 39s
Run unit tests / unit_tests (pull_request) Failing after 1m31s
Run unit tests / rubocop (pull_request) Successful in 23s
Run unit tests / build-static-assets (pull_request) Has been skipped

This commit is contained in:
Manuel Bustillo 2025-01-24 00:48:00 +01:00
parent 44590e6889
commit a12d60e7cb

View File

@ -35,8 +35,7 @@ jobs:
echo "Trying again" echo "Trying again"
done done
- run: | - run: |
git fetch migrations_added=$(git diff ${{ github.event.pull_request.base.sha }} --name-only db/migrate/ | wc -l)
migrations_added=$(git diff origin/${{ github.base_ref }} --name-only db/migrate/ | wc -l)
echo "Migrations added: $migrations_added" echo "Migrations added: $migrations_added"
bundle exec rake db:schema:load db:migrate:status db:migrate:redo bundle exec rake db:schema:load db:migrate:status db:migrate:redo
git diff --exit-code db/schema.rb git diff --exit-code db/schema.rb