Skip to content

Commit

Permalink
Using pwsh for scripting
Browse files Browse the repository at this point in the history
Prevents issues between Win and Linux
  • Loading branch information
Foxlider committed Oct 5, 2024
1 parent 390458e commit 6fed512
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,13 @@ jobs:

- name: Set Version
id: set_version
run: echo "VERSION=$([[ ${{ env.IS_TAG }} == 'true' ]] && echo '${{ github.ref }}' || echo '${{ steps.get-version.outputs.version }}')" >> $GITHUB_ENV
run: |
if ($env:IS_TAG -eq "true") {
echo "VERSION=$env:GITHUB_REF" >> $env:GITHUB_ENV
} else {
echo "VERSION=${{ steps.get-version.outputs.version }}" >> $env:GITHUB_ENV
}
shell: pwsh

- name: Create Release
id: create_release
Expand Down

0 comments on commit 6fed512

Please sign in to comment.