From 1cf207b4389ebb00384349e01028aeb8a04b58d2 Mon Sep 17 00:00:00 2001 From: Jade Date: Sun, 22 Oct 2023 12:29:42 -0500 Subject: [PATCH] Fix SHA syntax (i think???) again --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64a497b..8774e52 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -92,10 +92,10 @@ jobs: path: "mrpack-distributor_*" # SHA commands from https://stackoverflow.com/questions/59810838/how-to-get-the-short-sha-for-the-github-workflow - name: Get short commit SHA (Windows) - if: ${{ github.event.inputs.create_release }} && ${{ matrix.platform.os == 'windows-latest' }} + if: ${{ github.event.inputs.create_release && matrix.platform.os == 'windows-latest' }} run: echo "SHORT_SHA=$("${{ github.sha }}".SubString(0, 8))" >> $env:GITHUB_ENV - name: Get short commit SHA (Unix) - if: ${{ github.event.inputs.create_release }} && ${{ matrix.platform.os != 'windows-latest' }} + if: ${{ github.event.inputs.create_release && matrix.platform.os != 'windows-latest' }} run: echo "SHORT_SHA=`git rev-parse --short HEAD`" >> $GITHUB_ENV - name: Create release if: ${{ github.event.inputs.create_release }}