Skip to content

Commit

Permalink
Fix SHA syntax (i think???) again
Browse files Browse the repository at this point in the history
  • Loading branch information
jadelily18 committed Oct 22, 2023
1 parent 117bd4e commit 1cf207b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 1cf207b

Please sign in to comment.