diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index b971dfc1e4..f90a99a24b 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -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'