Skip to content

Commit

Permalink
use powershell for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonNekoGH committed Feb 10, 2025
1 parent 7b5f8cb commit 7c33fa3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/release-tamagotchi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,18 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Remove Version Prefix
if: ${{ matrix.platform != 'win' }}
run: |
version=$(echo "${{ github.ref_name }}" | sed 's/tamagotchi\/v//')
echo "Version: $version"
echo "VERSION=$version" >> $GITHUB_ENV
- name: Remove Version Prefix
if: ${{ matrix.platform == 'win' }}
run: |
# PowerShell version of the above
$version = ${{ github.ref_name }} -replace 'tamagotchi/v', ''
echo "Version: $version"
echo "VERSION=$version" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -88,12 +96,6 @@ jobs:
runs-on: ubuntu-24.04
needs: build-tamagotchi
steps:
- name: Remove Version Prefix
run: |
version=$(echo "${{ github.ref_name }}" | sed 's/tamagotchi\/v//')
echo "Version: $version"
echo "VERSION=$version" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v4

Expand Down

0 comments on commit 7c33fa3

Please sign in to comment.