diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3e03dad..6f735ff 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,14 +16,6 @@ jobs: with: persist-credentials: false - - name: Extract changelog - uses: sean0x42/markdown-extract@v2 - id: extract_changelog - with: - file: changelog.md - pattern: '\[${{ steps.version.outputs.version }}\].+' - no-print-matched-heading: true - - name: Validate version id: version run: | @@ -35,6 +27,14 @@ jobs: echo version="$(echo "$tag" | sed 's/^v//')" >> "$GITHUB_OUTPUT" fi + - name: Extract changelog + uses: sean0x42/markdown-extract@v2 + id: extract_changelog + with: + file: changelog.md + pattern: '\[${{ steps.version.outputs.version }}\].+' + no-print-matched-heading: true + - name: Create release if: steps.version.outputs.valid uses: softprops/action-gh-release@v1