Skip to content

Commit

Permalink
Fix a small bug in version setting script (#413)
Browse files Browse the repository at this point in the history
* Fix a small bug in version setting script

* Deploy order

* Tweak

* Tweak
  • Loading branch information
wjthieme authored Oct 28, 2024
1 parent 649b6ee commit 3f274a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/version/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ runs:
.version = $version
' ${{ inputs.manifest-file }} > tmp.json && mv tmp.json ${{ inputs.manifest-file }}
jq --arg version "${{ steps.version.outputs.VERSION }}" '
.dependencies |= (with_entries(if .value == "*" then .value = $version else . end) // .)
if .dependencies then .dependencies |= with_entries(if .value == "*" then .value = $version else . end) else . end
' ${{ inputs.manifest-file }} > tmp.json && mv tmp.json ${{ inputs.manifest-file }}
shell: bash
- name: Update Cargo Packages
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ jobs:
- name: Publish package
working-directory: rust-sdk/${{ matrix.package }}
run: cargo publish --allow-dirty
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_TOKEN }}

idl:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 3f274a4

Please sign in to comment.