Skip to content

Commit

Permalink
.github: Print out variables in release.yaml to debug faillure
Browse files Browse the repository at this point in the history
Signed-off-by: timflannagan <[email protected]>
  • Loading branch information
timflannagan committed Jan 15, 2025
1 parent 5d8fe52 commit 154956f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,13 @@ jobs:
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION="${GITHUB_REF#refs/tags/}"
echo "GORELEASER_ARGS=--clean" >> $GITHUB_ENV
elif [[ $GITHUB_REF == refs/heads/main ]]; then
VERSION="$(echo "${GITHUB_REF#refs/heads/}" | sed -r 's|/+|-|g')"
echo "GORELEASER_ARGS=--clean --skip=validate" >> $GITHUB_ENV
elif [[ $GITHUB_REF == refs/pull/* ]]; then
VERSION="pr-$(echo "${GITHUB_REF}" | sed -E 's|refs/pull/([^/]+)/?.*|\1|')"
else
VERSION="$(git describe --tags --always)"
fi
echo "VERSION=${VERSION}"
echo "GORELEASER_ARGS=${GORELEASER_ARGS}"
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Run goreleaser
Expand Down

0 comments on commit 154956f

Please sign in to comment.