Skip to content

Commit

Permalink
Fix get-commit-metadata upstream var
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolay Yurin <[email protected]>
  • Loading branch information
yurinnick committed Sep 12, 2023
1 parent 0b5a761 commit 423e93f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/get-commit-metadata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
branch="${GITHUB_BASE_REF}"

if [ "${GITHUB_EVENT_NAME}" = 'push' ]; then
branch="${GITHUB_REF}"
branch="${GITHUB_REF_NAME}"
fi

echo "branch=${branch}" >> "${GITHUB_OUTPUT}"

upstream="${branch//_base$/}"
upstream="${branch//_base/}"
commit="$(
git rev-parse "origin/${upstream}" &> /dev/null \
|| (
Expand Down

0 comments on commit 423e93f

Please sign in to comment.