Skip to content

Commit

Permalink
fix: typo in matrix attribute
Browse files Browse the repository at this point in the history
and fix syntax for if workflow call
  • Loading branch information
diogomatsubara committed Jul 16, 2024
1 parent a380352 commit fafaae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sync-toolchains.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ jobs:
shell: bash

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

Expand Down

0 comments on commit fafaae0

Please sign in to comment.