From 57ec0a8fff59e410a5a0e28f22c4c07f6c39ea46 Mon Sep 17 00:00:00 2001 From: Andrey Onishchenko <100789522+cucumber-sp@users.noreply.github.com> Date: Tue, 7 May 2024 07:33:07 +0300 Subject: [PATCH] Update update-build-release.yml --- .github/workflows/update-build-release.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/update-build-release.yml b/.github/workflows/update-build-release.yml index 6677fe5..fb38166 100644 --- a/.github/workflows/update-build-release.yml +++ b/.github/workflows/update-build-release.yml @@ -49,6 +49,14 @@ jobs: echo "VERSION=$VERSION" >> $GITHUB_OUTPUT echo "release_name=$release_name" >> $GITHUB_OUTPUT echo "tag_name=$tag_name" >> $GITHUB_OUTPUT + + - name: Tag Repo + uses: rickstaa/action-create-tag@v1 + if: ${{ steps.commit.outputs.commited || github.event.head_commit }} + with: + tag: ${{ steps.version.outputs.tag_name }}" + force_push_tag: true + commit_sha: ${{ steps.commit.outputs.commit_long_sha || github.event.head_commit.id}} - name: Outputs id: outputs @@ -118,14 +126,7 @@ jobs: run: echo "release_html=$(jq -r --arg version "${{ needs.update_packages.outputs.version }}" '.["desktop-release-notes." + $version]' ./dist/release_notes.json)" >> $GITHUB_OUTPUT - run: rm -rf dist/release_notes.json - - - name: Tag Repo - uses: rickstaa/action-create-tag@v1 - with: - tag: ${{ needs.update_packages.outputs.tag_name}} - force_push_tag: true - commit_sha: ${{ needs.update_packages.outputs.commit_long_sha }} - + - name: Upload files to a GitHub release uses: ncipollo/release-action@v1.13.0 with: