Indentation, move comment above the block.

This commit is contained in:
Benoit Marty 2022-07-11 12:41:17 +02:00
parent 63419fcf5e
commit 6feca4badf

View file

@ -218,12 +218,12 @@ jobs:
run: |
python3 -m pip install towncrier
- name: Run towncrier
run: |
# Fetch the pull request' base branch so towncrier will be able to
# compare the current branch with the base branch.
# Source: https://github.com/actions/checkout/#fetch-all-branches.
git fetch --no-tags origin +refs/heads/${BASE_BRANCH}:refs/remotes/origin/${BASE_BRANCH}
towncrier check --compare-with origin/${BASE_BRANCH}
run: |
git fetch --no-tags origin +refs/heads/${BASE_BRANCH}:refs/remotes/origin/${BASE_BRANCH}
towncrier check --compare-with origin/${BASE_BRANCH}
env:
BASE_BRANCH: ${{ github.base_ref }}
if: github.event_name == 'pull_request'