Skip to content

Commit

Permalink
try fixing version script to work on powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaiahReid committed Jun 14, 2024
1 parent 8cc1d0c commit d8733a6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pkg-version-bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:
name: Publish to Winget via Komac
runs-on: windows-latest
steps:
- name: Get Version
- name: Set VERSION variable
env:
TAG: ${{ github.event.client_payload.tag || github.event.inputs.tag }}
id: get-version
run: |
# Get version info
VERSION=$(echo "${TAG#v}")
# Pipe to step output
"version=VERSION" >> $env:GITHUB_OUTPUT
$TAG = "${{ env.TAG }}"
$VERSION = $TAG -replace '^v', ''
echo "version=$VERSION" >> $env:GITHUB_OUTPUT
shell: pwsh
- name: Winget version bump
uses: vedantmgoyal2009/winget-releaser@v2
with:
Expand Down

0 comments on commit d8733a6

Please sign in to comment.