Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,14 @@ jobs:

- name: Check if release already exists
id: check
env:
GH_TOKEN: ${{ github.token }}
run: |
if gh release view "${{ github.ref_name }}" &>/dev/null; then
if gh release view "$GITHUB_REF_NAME" &>/dev/null; then
echo "exists=true" >> "$GITHUB_OUTPUT"
else
echo "exists=false" >> "$GITHUB_OUTPUT"
fi
env:
GH_TOKEN: ${{ github.token }}

- name: Validate tag matches source version
run: |
Expand Down Expand Up @@ -358,7 +358,7 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: |
TAG="${{ github.ref_name }}"
TAG="$GITHUB_REF_NAME"
VERSION="${TAG#v}"
if gh release view "$TAG" >/dev/null 2>&1; then
echo "::notice::GitHub Release ${TAG} already exists; editing it instead of creating a duplicate."
Expand Down Expand Up @@ -404,7 +404,7 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: |
TAG="${{ github.ref_name }}"
TAG="$GITHUB_REF_NAME"
VERSION="${TAG#v}"
SAFE_TAG="${VERSION//./\\.}"

Expand Down Expand Up @@ -454,7 +454,7 @@ jobs:

- name: Summary
run: |
TAG="${{ github.ref_name }}"
TAG="$GITHUB_REF_NAME"
VERSION="${TAG#v}"
{
echo "## Release ${VERSION}"
Expand Down
2 changes: 1 addition & 1 deletion templates/universal/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ jobs:
- name: Extract version from tag
id: version
run: |
TAG="${{ github.ref_name }}"
TAG="$GITHUB_REF_NAME"
VERSION="${TAG#v}"
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
Expand Down
Loading