Skip to content

Commit 5cfd7d0

Browse files
committed
Specify refspec.
1 parent a19b004 commit 5cfd7d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/on-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
# Fetch the pull request' base branch so towncrier will be able to
4848
# compare the current branch with the base branch.
4949
# Source: https://github.com/actions/checkout/#fetch-all-branches.
50-
git fetch --no-tags origin +refs/heads/${BASE_BRANCH}:refs/remotes/origin/${BASE_BRANCH}
51-
towncrier check --compare-with origin/${BASE_BRANCH}
50+
git fetch --no-tags origin +refs/heads/main:refs/remotes/origin/main
51+
towncrier check --compare-with origin/main
5252
env:
5353
BASE_BRANCH: ${{ github.base_ref }}

0 commit comments

Comments
 (0)