Skip to content

Commit

Permalink
fix: workflow error
Browse files Browse the repository at this point in the history
  • Loading branch information
Shurtu-gal committed Oct 31, 2023
1 parent 35f6fac commit 0fe9e07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-chocolatey.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
- name: Set Version
id: release_version
run: |
if ( "${{ github.event_name }}" -eq "workflow_dispatch" && "${{ github.event.inputs.version }}" -ne "" ) {
if ( "${{ github.event_name }}" -eq "workflow_dispatch" -and "${{ github.event.inputs.version }}" -ne "" ) {
$version = "${{ github.event.inputs.version }}"
}
else {
$version = (npm run get-version --silent)
$version = $(npm pkg get version)
}
echo "Setting version to $version"
echo "::set-output name=version::$version"
echo "version=$version" >> $env:GITHUB_OUTPUT
- name: Make nuspec from the template
run: |
cd ./.github/workflows/deploy/chocolatey
Expand Down

0 comments on commit 0fe9e07

Please sign in to comment.