Skip to content

Commit

Permalink
fix(linux): Improve triggering of packaging GHA
Browse files Browse the repository at this point in the history
We now pass the SHA for the base ref. Hopefully this will fix the failures
with API verification.
  • Loading branch information
ermshiperete committed Nov 14, 2023
1 parent 039e859 commit c3750a6
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 c3750a6

Please sign in to comment.