Skip to content

Commit

Permalink
Merge pull request #10009 from keymanapp/fix/linux/improveGHATrigger
Browse files Browse the repository at this point in the history
fix(linux): Improve triggering of packaging GHA
  • Loading branch information
ermshiperete authored Nov 15, 2023
2 parents 6a305ca + c3750a6 commit 0f5b88d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/build/trigger-builds.inc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ function triggerGitHubActionsBuild() {
GIT_EVENT_TYPE="${GITHUB_ACTION}: PR #${GIT_BRANCH}"
JSON=$(curl -s "${GITHUB_SERVER}/pulls/${GIT_BRANCH}")
GIT_USER="$(echo "$JSON" | $JQ -r '.user.login')"
GIT_BASE_REF="$(echo "$JSON" | $JQ -r '.base.ref')"
GIT_BASE_BRANCH="${GIT_BASE_REF}"
GIT_BASE_BRANCH="$(echo "$JSON" | $JQ -r '.base.ref')"
GIT_BASE_REF="$(git rev-parse "${GIT_BASE_BRANCH}")"
GIT_BRANCH="PR-${GIT_BRANCH}"
else
GIT_BUILD_SHA="$(git rev-parse "refs/heads/${GIT_BRANCH}")"
Expand Down

0 comments on commit 0f5b88d

Please sign in to comment.