diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 828ead6..8dcdb25 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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}") @@ -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