Skip to content

Commit

Permalink
ci: Use GHA syntax for env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanty committed Dec 17, 2023
1 parent d6a1ef3 commit b4f7d0a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release_new_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
WINDOWS_ASSET_NAME: knope-x86_64-pc-windows-msvc
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release download --repo knope-dev/knope v${KNOPE_VERSION} --pattern "knope-x86_64-pc-windows-msvc"
tar -xzf ${WINDOWS_ASSET_NAME}.tgz
mv ${WINDOWS_ASSET_NAME}/knope.exe tools/knope.exe
gh release download --repo knope-dev/knope v${{ env.KNOPE_VERSION }} --pattern "knope-x86_64-pc-windows-msvc"
tar -xzf ${{ env.WINDOWS_ASSET_NAME }}.tgz
mv ${{ env.WINDOWS_ASSET_NAME }}/knope.exe tools/knope.exe
- name: Update version in knope.nuspec
run: sed -i "s#<version>.*</version>#<version>${KNOPE_VERSION}</version>#" knope.nuspec
run: sed -i "s#<version>.*</version>#<version>${{ env.KNOPE_VERSION }}</version>#" knope.nuspec
- run: choco pack
- name: Push to Chocolatey
run: |
Expand All @@ -33,5 +33,5 @@ jobs:
- name: Commit back new nuspec file
run: |
git add knope.nuspec
git commit -m "Update knope.nuspec to ${KNOPE_VERSION}"
git commit -m "Update knope.nuspec to ${{ env.KNOPE_VERSION }}"
git push

0 comments on commit b4f7d0a

Please sign in to comment.