Skip to content

Commit

Permalink
Replaced pwsh syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
adamthewilliam committed Sep 30, 2024
1 parent 6bc20aa commit a4de562
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pack-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ jobs:
- name: Build
run: dotnet build ${{ env.SOLUTION_DIR }} --configuration Release --no-restore

- name: Set version and trim 'v' prefix
- name: Set version and trim leading 'v'
run: |
$version = "${{ github.ref_name }}" -replace '^v', ''
echo "VERSION=$version" >> $env:GITHUB_ENV
version=$(echo ${{ github.ref_name }} | sed 's/^v//')
echo "VERSION=$version" >> $GITHUB_ENV
echo "Set VERSION to $version"
- name: Pack
Expand Down

0 comments on commit a4de562

Please sign in to comment.