diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8257bc1..8dcdb25 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,7 +51,7 @@ jobs: run: | if [ -z "${RELEASE_VERSION}" ]; then - NEW_VERSION_NAME="0.0.1" + NEW_VERSION="0.0.1" else OLD_VERSION=$(echo "${RELEASE_VERSION}") @@ -64,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