From 1c628d9376d448b7b9f7187daf71224a63c07283 Mon Sep 17 00:00:00 2001 From: Mohamed Nasser Date: Fri, 6 Sep 2024 02:08:41 +0300 Subject: [PATCH] Update release.yaml --- .github/workflows/release.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0196e3d..0061679 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -58,19 +58,21 @@ jobs: new_version=$(poetry run python handle_versioning.py read) git commit -m "Bump version to $new_version" git push - echo "::set-output name=latest_version::$new_version" + echo "latest_version=$new_version" >> $GITHUB_ENV - name: Generate Release Notes id: release-notes - uses: github-release-notes/github-release-notes@v1 + uses: docker://decathlon/release-notes-generator-action:2.0.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - github_token: ${{ secrets.GITHUB_TOKEN }} - version: ${{ steps.bump_version.outputs.latest_version }} + OUTPUT_FOLDER: temp_release_notes + USE_MILESTONE_TITLE: "true" - name: Create tag id: create_tags run: | - current_version=${{steps.bump_version.outputs.latest_version}} + current_version=${{env.latest_version}} git tag $current_version git push origin $current_version @@ -80,9 +82,9 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ steps.bump_version.outputs.latest_version}} - release_name: Release ${{ steps.bump_version.outputs.latest_version}} - body: ${{ steps.release-notes.outputs.release_notes }} + tag_name: ${{env.latest_version}} + release_name: Release ${{env.latest_version}} + body: ${{ steps.release-notes.outputs.notes }} draft: false prerelease: false