Skip to content

Commit

Permalink
test fix release without previous release
Browse files Browse the repository at this point in the history
  • Loading branch information
AleDore committed Mar 1, 2024
1 parent d7d8607 commit 8d8ec0e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
if [ -z "${RELEASE_VERSION}" ]; then
NEW_VERSION="0.0.1"
OLD_VERSION="0.0.0"
else
OLD_VERSION=$(echo "${RELEASE_VERSION}")
Expand All @@ -65,10 +64,15 @@ jobs:
- name: Create Repository Release
run: |
gh release create ${{ env.NEW_VERSION }} \
--title ${{ env.NEW_VERSION }} \
--generate-notes \
--notes-start-tag ${{ env.OLD_VERSION }}
if [ -z "${OLD_VERSION}" ]; then
gh release create ${{ env.NEW_VERSION }} \
--title ${{ env.NEW_VERSION }}
else
gh release create ${{ env.NEW_VERSION }} \
--title ${{ env.NEW_VERSION }} \
--generate-notes \
--notes-start-tag ${{ env.OLD_VERSION }}
fi
- name: Setup Docker buildx
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
Expand Down

0 comments on commit 8d8ec0e

Please sign in to comment.