From 6310c2bf04dc32fc6fc303b347a8a5f1c25fc604 Mon Sep 17 00:00:00 2001 From: Nils Badtke Date: Sat, 2 Mar 2024 21:56:40 +0100 Subject: [PATCH] ci(releases): fix dev-version variable --- .github/workflows/bump-version.yml | 2 +- .github/workflows/latest.yml | 11 +++++------ .github/workflows/publish-release.yml | 1 + 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 36855c2..86385b2 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -20,7 +20,7 @@ jobs: if: github.ref_name == github.event.repository.default_branch runs-on: ubuntu-22.04 outputs: - new-tag: ${{ steps.bump_version.outputs.next-version }} + new-tag: v${{ steps.bump_version.outputs.next-version }} steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/latest.yml b/.github/workflows/latest.yml index f1cbd36..511e0fe 100644 --- a/.github/workflows/latest.yml +++ b/.github/workflows/latest.yml @@ -17,12 +17,11 @@ jobs: outputs: dev-version: ${{ env.DEV_VERSION }} steps: - - uses: actions/checkout@v4 - - name: Delete Release and Tag - run: gh release delete ${{ env.DEV_VERSION }} --cleanup-tag - continue-on-error: true - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: dev-drprasad/delete-tag-and-release@v1.0 # PRERELEASE is v1.0 and can also be used to test and give us feedback + with: + tag_name: ${{ env.DEV_VERSION }} + github_token: ${{ secrets.GITHUB_TOKEN }} + delete_release: true create-dev-release-based-on-current-default-branch: needs: cleanup-of-dev-release diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index ca86865..846f2f1 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -27,6 +27,7 @@ jobs: commit_sha: ${{ inputs.commit }} custom_tag: ${{ inputs.version }} create_annotated_tag: true + tag_prefix: '' bundle: name: Bundle version ${{ inputs.version }}