Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cortex version on windows #761

Merged
merged 1 commit into from
Jun 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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