aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-01-07 16:51:52 +0100
committerGitHub <noreply@github.com>2023-01-07 16:51:52 +0100
commitd89290b453fc29fa288bca0a9e69fd219931ab1c (patch)
treebcb1473c4cbb25e5f64c2c36e010e49ef75230e2
parentf601c4b1ca9051c5ffa6a7543e0851ae86127041 (diff)
downloadrneovim-d89290b453fc29fa288bca0a9e69fd219931ab1c.tar.gz
rneovim-d89290b453fc29fa288bca0a9e69fd219931ab1c.tar.bz2
rneovim-d89290b453fc29fa288bca0a9e69fd219931ab1c.zip
ci(news): checkout to HEAD commit instead of merge commit (#21679)
The default merge branch is unreliable when trying to determine number of commits in a PR. Using the HEAD branch of the PR removes this ambiguity.
-rw-r--r--.github/workflows/news.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.github/workflows/news.yml b/.github/workflows/news.yml
index 8524641b11..46ac0ec02d 100644
--- a/.github/workflows/news.yml
+++ b/.github/workflows/news.yml
@@ -10,6 +10,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
+ ref: ${{ github.event.pull_request.head.sha }}
- name: news.txt needs to be updated
run: |
for commit in $(git rev-list HEAD~${{ github.event.pull_request.commits }}..HEAD); do