Skip to content

Commit

Permalink
fix: Move cargo update after cargo check (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomatsubara authored Sep 13, 2024
1 parent 772f2ec commit 23331f3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/sync-lockfiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ jobs:
if: ${{ matrix.dependant == 'zenoh-c' }}
run: cp Cargo.lock build-resources/opaque-types/Cargo.lock

- name: cargo update ${{ matrix.dependant }}
run: cargo update zenoh

- name: Rectify lockfile
# NOTE: Checking the package for errors will rectify the Cargo.lock while preserving
# the dependency versions fetched from source.
Expand All @@ -111,6 +108,13 @@ jobs:
if: ${{ matrix.dependant == 'zenoh-c' }}
run: cargo check --manifest-path build-resources/opaque-types/Cargo.toml

- name: cargo update ${{ matrix.dependant }}
run: cargo update zenoh --manifest-path ${{ steps.crate-path.outputs.value }}/Cargo.toml

- name: cargo update for zenoh-c build-resources
if: ${{ matrix.dependant == 'zenoh-c' }}
run: cargo update zenoh --manifest-path build-resources/opaque-types/Cargo.toml

- name: Create/Update a pull request if the lockfile 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 23331f3

Please sign in to comment.