Skip to content

Commit

Permalink
Fix release numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Nov 18, 2023
1 parent 33ac29d commit 35e3ee7
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions scripts/ci/env_gh.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
#!/bin/bash -e

if [[ ${GITHUB_REF} == *"refs/heads"* ]]; then
TMP_CI_BRANCH=${GITHUB_REF#refs/heads/}
elif [[ ${GITHUB_REF} == *"refs/tags"* ]]; then
TMP_CI_TAG=${GITHUB_REF#refs/tags/}
TMP_CI_BRANCH=${TMP_CI_TAG}
echo "GITHUB_REF_NAME: ${GITHUB_REF_NAME}"
echo "GITHUB_REF_TYPE: ${GITHUB_REF_TYPE}"

TMP_CI_BRANCH=${GITHUB_REF_NAME}
if [[ ${GITHUB_REF_TYPE} == "tag" ]]; then
TMP_CI_TAG=${GITHUB_REF_NAME}
TMP_CI_BRANCH=${GITHUB_REF_NAME}
elif [[ ${GITHUB_REF_TYPE} == "branch" ]]; then
TMP_CI_TAG=""
TMP_CI_BRANCH=${GITHUB_REF_NAME}
else
TMP_CI_BRANCH=${TMP_CI_BRANCH:=""}
TMP_CI_TAG=${TMP_CI_TAG:=""}
TMP_CI_TAG=""
TMP_CI_BRANCH=""
fi

TMP_CI_COMMIT_BEFORE=$(jq --raw-output .before "${GITHUB_EVENT_PATH}")
Expand Down

1 comment on commit 35e3ee7

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.