From b3aa70db28b35d6ad7812e5a5f89a289d8421f70 Mon Sep 17 00:00:00 2001 From: jbtrystram Date: Wed, 28 Feb 2024 15:06:37 +0100 Subject: [PATCH] fetch the source branch for generating the shortlog --- .github/workflows/openshift-os.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/openshift-os.yml b/.github/workflows/openshift-os.yml index 6d6a578fee..8e23144b71 100644 --- a/.github/workflows/openshift-os.yml +++ b/.github/workflows/openshift-os.yml @@ -74,9 +74,11 @@ jobs: git submodule update cd fedora-coreos-config + # the submodule init only fetch the submodule commit and the default branch `testing-devel` + git fetch origin ${SOURCE_BRANCH} # Omit CoreOS Bot commits from the log message, since they generally # only affect FCOS - git shortlog "HEAD..$SOURCE_BRANCH" --perl-regexp \ + git shortlog "HEAD..FETCH_HEAD" --perl-regexp \ --author='^((?!CoreOS Bot ).*)$' \ > $RUNNER_TEMP/shortlog