Skip to content

Commit 546bb7f

Browse files
authored
Fix: release action syntax
1 parent 48a3f32 commit 546bb7f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ jobs:
198198
- name: Rename binary according to target
199199
shell: bash
200200
run: |
201-
if [ "${{ matrix.os}}" = "windows-latest" ]; then
201+
if [ "${{ matrix.os }}" = "windows-latest" ]; then
202202
NEW_BIN="${{ env.TARGET_DIR }}/tmaze_${{ matrix.name }}_${{ needs.create-release.outputs.version }}.exe"
203203
else
204204
NEW_BIN="${{ env.TARGET_DIR }}/tmaze_${{ matrix.name }}_${{ needs.create-release.outputs.version }}"
@@ -207,7 +207,7 @@ jobs:
207207
cp "$BIN" "$NEW_BIN"
208208
209209
- name: Upload release archive
210-
if: ${{ needs.create-release.outputs.do_smt == "true" }}
210+
if: ${{ fromJSON(needs.create-release.outputs.do_smt) == true }}
211211
env:
212212
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
213213
shell: bash
@@ -276,7 +276,7 @@ jobs:
276276
mv $DEB_DIR/$DEB_BUILD_NAME $DEB_NAME
277277
278278
- name: Upload release archive
279-
if: ${{ needs.create-release.outputs.do_smt == "true" }}
279+
if: ${{ fromJSON(needs.create-release.outputs.do_smt) == true }}
280280
env:
281281
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
282282
shell: bash
@@ -305,15 +305,15 @@ jobs:
305305
- run: sudo apt update && sudo apt install libasound2-dev
306306

307307
- name: publish cmaze
308-
if: ${{ needs.create-release.outputs.do_smt == "true" }}
308+
if: ${{ fromJSON(needs.create-release.outputs.do_smt) == true }}
309309
uses: katyo/publish-crates@v2
310310
with:
311311
path: ./cmaze
312312
registry-token: ${{ secrets.CRATES_IO }}
313313
ignore-unpublished-changes: true
314314

315315
- name: publish tmaze
316-
if: ${{ needs.create-release.outputs.do_smt == "true" }}
316+
if: ${{ fromJSON(needs.create-release.outputs.do_smt) == true }}
317317
uses: katyo/publish-crates@v2
318318
with:
319319
path: ./tmaze

0 commit comments

Comments
 (0)