From 546bb7f776f661be06bdaaa417c957f70ba30141 Mon Sep 17 00:00:00 2001 From: morsee <42314964+ur-fault@users.noreply.github.com> Date: Tue, 28 May 2024 14:13:27 +0200 Subject: [PATCH] Fix: release action syntax --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e29f05a..f8a4aa1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -198,7 +198,7 @@ jobs: - name: Rename binary according to target shell: bash run: | - if [ "${{ matrix.os}}" = "windows-latest" ]; then + if [ "${{ matrix.os }}" = "windows-latest" ]; then NEW_BIN="${{ env.TARGET_DIR }}/tmaze_${{ matrix.name }}_${{ needs.create-release.outputs.version }}.exe" else NEW_BIN="${{ env.TARGET_DIR }}/tmaze_${{ matrix.name }}_${{ needs.create-release.outputs.version }}" @@ -207,7 +207,7 @@ jobs: cp "$BIN" "$NEW_BIN" - name: Upload release archive - if: ${{ needs.create-release.outputs.do_smt == "true" }} + if: ${{ fromJSON(needs.create-release.outputs.do_smt) == true }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} shell: bash @@ -276,7 +276,7 @@ jobs: mv $DEB_DIR/$DEB_BUILD_NAME $DEB_NAME - name: Upload release archive - if: ${{ needs.create-release.outputs.do_smt == "true" }} + if: ${{ fromJSON(needs.create-release.outputs.do_smt) == true }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} shell: bash @@ -305,7 +305,7 @@ jobs: - run: sudo apt update && sudo apt install libasound2-dev - name: publish cmaze - if: ${{ needs.create-release.outputs.do_smt == "true" }} + if: ${{ fromJSON(needs.create-release.outputs.do_smt) == true }} uses: katyo/publish-crates@v2 with: path: ./cmaze @@ -313,7 +313,7 @@ jobs: ignore-unpublished-changes: true - name: publish tmaze - if: ${{ needs.create-release.outputs.do_smt == "true" }} + if: ${{ fromJSON(needs.create-release.outputs.do_smt) == true }} uses: katyo/publish-crates@v2 with: path: ./tmaze