Skip to content

Commit

Permalink
Merge pull request #199 from ZettaScaleLabs/fix-sync-rust-version
Browse files Browse the repository at this point in the history
fix: Update Cargo.toml rust-version
  • Loading branch information
Mallets authored Jul 16, 2024
2 parents e6b29fb + 71003e2 commit a380352
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/sync-toolchains.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ jobs:
run: sed "s;^channel = .*\$;channel = \"${{ inputs.version }}\";" --in-place rust-toolchain.toml
shell: bash

- name: Update ${{ matrix.dependant }}' rust-version in Cargo.toml to ${{ inputs.version }}
if: ${{ matrix.dependent }} == "zenoh"
run: sed "s;^rust-version = .*\$;rust-version = \"${{ inputs.version }}\";" --in-place Cargo.toml
shell: bash

- name: Update ${{ matrix.dependant }}' rust-version in zenoh-jni/Cargo.toml to ${{ inputs.version }}
if: contains(fromJSON('["zenoh-java", "zenoh-kotlin"]'), ${{ matrix.dependent }})
run: sed "s;^rust-version = .*\$;rust-version = \"${{ inputs.version }}\";" --in-place zenoh-jni/Cargo.toml
shell: bash

- name: Create/Update a pull request if the toolchain changed
id: cpr
# NOTE: If there is a pending PR, this action will simply update it with a forced push.
Expand Down

0 comments on commit a380352

Please sign in to comment.