diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d72dcc9..21aadb3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,12 +12,12 @@ on: description: 'Version tag' type: 'string' required: true - default: '0.4.0' + default: '0.6.1' run-name: Release (version ${{ inputs.version_tag }}, draft ${{ inputs.test_release }}) [${{ github.event_name }}][${{ github.head_ref || github.ref_name }}] jobs: - check-release: + check-release-tag: runs-on: ubuntu-latest defaults: run: @@ -25,6 +25,10 @@ jobs: steps: - uses: actions/checkout@v4 + with: + fetch_depth: 0 + fetch-tags: true + show-progress: true - name: Check tag uses: mukunku/tag-exists-action@v1.0.0 @@ -42,9 +46,6 @@ jobs: if: ${{ steps.checkTag.outputs.exists == 'false' }} id: changelog run: | - set -x - find . - git tag PREV_TAG=$(git tag | grep -E "^v" | sort -ud | tac | head -n1) git log ${PREV_TAG}..HEAD --pretty=format:"%s" | uniq | grep -E "^feat|^bug|^fix" > changelog.txt @@ -55,8 +56,8 @@ jobs: name: changelog_v${{ github.event.inputs.version_tag }} path: changelog.txt - docs: - needs: check-release + user-manual: + needs: check-release-tag runs-on: ubuntu-latest defaults: run: @@ -103,7 +104,7 @@ jobs: uses: andymckay/cancel-action@0.3 build-mac-os: - needs: check-release + needs: check-release-tag runs-on: macos-latest env: GO_VERSION: 1.20.14 @@ -188,7 +189,7 @@ jobs: uses: andymckay/cancel-action@0.3 build-linux: - needs: check-release + needs: check-release-tag runs-on: ubuntu-latest env: GO_VERSION: 1.20.14 @@ -248,7 +249,7 @@ jobs: uses: andymckay/cancel-action@0.3 build-windows: - needs: check-release + needs: check-release-tag runs-on: windows-latest env: GO_VERSION: 1.20.14 @@ -345,7 +346,7 @@ jobs: uses: andymckay/cancel-action@0.3 create-release-tag: - needs: [ build-windows, build-linux, build-mac-os, docs ] + needs: [ build-windows, build-linux, build-mac-os, user-manual ] runs-on: ubuntu-latest defaults: run: