diff --git a/.github/workflows/draft.yaml b/.github/workflows/draft.yaml index 35d8a5e..d311789 100644 --- a/.github/workflows/draft.yaml +++ b/.github/workflows/draft.yaml @@ -21,6 +21,15 @@ jobs: steps: - name: "Checkout" uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - name: "Get Previous Tag" + id: tag + run: | + TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "") + echo "TAG: ${TAG}" + echo "name=${TAG}" >> "${GITHUB_OUTPUT}" - name: "Draft Release Action" id: draft @@ -29,6 +38,8 @@ jobs: semver: patch prerelease: false prefix: v + previous_tag_name: ${{ steps.tag.outputs.name }} + notes_strip_prefix: true - name: "Process Release Draft URL" run: | diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1a580fb..dc97eb3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -79,15 +79,22 @@ jobs: app_id: ${{ vars.APP_CLIENT_ID }} app_private_key: ${{ secrets.APP_PRIVATE_KEY }} + - name: "Create Tracking Tag" + uses: cssnr/update-version-tags-action@v2 + with: + prefix: "" + major: false + minor: false + release: true + - name: "Update Version Tags" id: tags uses: cssnr/update-version-tags-action@v2 with: ref: refs/heads/${{ env.release }} - tag: ${{ env.tag }} - tags: "latest" - force: true + prefix: "v" release: true + force: true - name: "Update Release Notes" continue-on-error: true