Skip to content

Commit

Permalink
ci: workaround broken path
Browse files Browse the repository at this point in the history
  • Loading branch information
farioas committed Sep 6, 2024
1 parent 092de79 commit e6672d1
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/test_migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,9 @@ jobs:
- name: Test migrations
run: |
output=$(poetry run python label_studio/manage.py makemigrations)
if ! grep 'No changes detected' <<< "${output}"; then
error="${output}"
error="${error//'%'/'%25'}"
error="${error//$'\n'/'%0A'}"
error="${error//$'\r'/'%0D'}"
echo "::error::${error}"
exit 1
fi
poetry run python label_studio/manage.py makemigrations
- name: Lint migrations
continue-on-error: true
run: |
poetry run python label_studio/manage.py lintmigrations --warnings-as-errors --git-commit-id ${{ github.event.pull_request.base.sha || github.event.before }}
poetry run python label_studio/manage.py lintmigrations --warnings-as-errors --project-root-path '.' --git-commit-id ${{ github.event.pull_request.base.sha || github.event.before }}

0 comments on commit e6672d1

Please sign in to comment.