Fetch correct state

This commit is contained in:
Alex Root Junior 2022-03-26 19:00:31 +02:00
parent 78efccdd56
commit ab1b99af5d
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
2 changed files with 47 additions and 43 deletions

View file

@ -21,7 +21,11 @@ jobs:
run: pip install towncrier
- name: "Check changelog"
run: towncrier check --compare-with ${{ github.base_ref }}
env:
BASE_BRANCH: ${{ github.base_ref }}
run: |
git fetch --no-tags origin +refs/heads/${BASE_BRANCH}:refs/remotes/origin/${BASE_BRANCH}
towncrier check --compare-with origin/${BASE_BRANCH}
- if: "failure()"
run: echo "FAILED"