From 33dea6267fbcc3cd47b1744830731c853ebbba18 Mon Sep 17 00:00:00 2001 From: ab77 Date: Mon, 7 Nov 2022 09:44:24 -0800 Subject: [PATCH] Avoid duplicate releases Change-type: patch --- .github/actions/finalize/action.yml | 17 ++++------------- .github/actions/publish/action.yml | 2 +- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/actions/finalize/action.yml b/.github/actions/finalize/action.yml index 376efa75..4121c250 100644 --- a/.github/actions/finalize/action.yml +++ b/.github/actions/finalize/action.yml @@ -24,7 +24,7 @@ runs: echo "version=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT - - name: Rename release + - name: Finalize release if: runner.os == 'Linux' shell: bash --noprofile --norc -eo pipefail -x {0} run: | @@ -34,18 +34,9 @@ runs: gh release edit '${{ github.event.pull_request.head.ref }}' \ --title 'v${{ steps.get_release.outputs.version }}' \ - --tag 'v${{ steps.get_release.outputs.version }}' + --tag 'v${{ steps.get_release.outputs.version }}' \ + --prerelease=false \ + --draft=false env: GITHUB_TOKEN: ${{ fromJSON(inputs.secrets).FLOWZONE_TOKEN }} - - - name: Finalize GitHub release - if: runner.os == 'Linux' - uses: softprops/action-gh-release@v1 - with: - name: v${{ steps.get_release.outputs.version }} - tag_name: v${{ steps.get_release.outputs.version }} - draft: false - generate_release_notes: true - prerelease: false - token: ${{ fromJSON(inputs.secrets).FLOWZONE_TOKEN }} diff --git a/.github/actions/publish/action.yml b/.github/actions/publish/action.yml index 23b94b4c..e8b2c1b8 100644 --- a/.github/actions/publish/action.yml +++ b/.github/actions/publish/action.yml @@ -220,7 +220,7 @@ runs: name: ${{ github.event.pull_request.head.ref }} tag_name: ${{ github.event.pull_request.head.ref }} draft: true - generate_release_notes: false + generate_release_notes: true prerelease: true token: ${{ fromJSON(inputs.secrets).FLOWZONE_TOKEN }} files: |