diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index 79a2a0d1..c8c0eda9 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -74,19 +74,6 @@ jobs: name: winutil path: ./winutil.ps1 - - name: Get latest release tag - id: get_latest_release - run: | - git fetch --tags --force - $latestTag = git for-each-ref --sort=-creatordate --format '%(refname:short)' refs/tags --count 1 - if ($LASTEXITCODE -ne 0 -or [string]::IsNullOrEmpty($latestTag)) { - Write-Error "Failed to get latest tag. Error code: $LASTEXITCODE" - exit 1 - } - Write-Host "Latest tag: $latestTag" - echo "LATEST_TAG=$latestTag" >> $env:GITHUB_ENV - shell: pwsh - - name: Generate Release Notes id: generate_notes uses: release-drafter/release-drafter@v5 @@ -95,7 +82,7 @@ jobs: with: config-name: release-drafter.yml version: ${{ env.version }} - + - name: Create and Upload Release id: create_release uses: softprops/action-gh-release@v2 @@ -103,7 +90,7 @@ jobs: tag_name: ${{ env.version }} name: Pre-Release ${{ env.version }} body: | - ${{ steps.prepare_body.outputs.body }} + ${{ steps.generate_notes.outputs.body }} ![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/winutil/${{ env.VERSION }}/winutil.ps1) append_body: false