Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
mblomdahl committed Jan 22, 2024
1 parent a8d3eb9 commit 295436a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ jobs:
echo "gh ref: $GITHUB_REF"
echo "head ref: $GITHUB_HEAD_REF"
echo "tag: $GITHUB_TAG"
if [ "$GITHUB_TAG" != "$GITHUB_HEAD_REF" ]; then
# We found a tag, use it for "branch".
GITHUB_BRANCH=${GITHUB_TAG}
else
# Use something else for "branch".
GITHUB_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
fi
#if [ "$GITHUB_TAG" != "$GITHUB_HEAD_REF" ]; then
# # We found a tag, use it for "branch".
# GITHUB_BRANCH=${GITHUB_TAG}
#else
# # Use something else for "branch".
# GITHUB_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
#fi
GITHUB_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
BRANCH_ESCAPED="${GITHUB_BRANCH//[\-\/+]/.}"
echo "GITHUB_BRANCH=$GITHUB_BRANCH ($GITHUB_HEAD_REF), BRANCH_ESCAPED=\"$BRANCH_ESCAPED\""
echo "BRANCH_ESCAPED=$BRANCH_ESCAPED" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit 295436a

Please sign in to comment.