Skip to content

Commit

Permalink
fix: cortex version on windows (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan authored Jun 24, 2024
1 parent 6c98e04 commit d9d4256
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/cortex-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,17 +182,16 @@ jobs:
with:
submodules: recursive

- name: Install jq
uses: dcarbone/[email protected]

- name: "Update version by tag"
shell: bash
run: |
cd cortex-js
# Remove the v prefix
tag_version=${GITHUB_REF#refs/tags/v}
# Replace the old version with the new version in package.json
jq --arg version "$tag_version" '.version = $version' ./package.json > /tmp/package.json && mv /tmp/package.json ./package.json
# Print the new version
echo "Updated package.json version to: $tag_version"
echo "Version: ${{ inputs.new_version }}"
# Update the version in package.json
jq --arg version "${{ inputs.new_version }}" '.version = $version' package.json > /tmp/package.json
mv /tmp/package.json package.json
- uses: actions/setup-dotnet@v3
if: runner.os == 'Windows'
Expand Down

0 comments on commit d9d4256

Please sign in to comment.