Skip to content

Commit 1e24b3a

Browse files
authored
Update Cargo.lock for dependency updates in common crates (#227)
Signed-off-by: Simon Davies <[email protected]>
1 parent b2a1382 commit 1e24b3a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ValidatePullRequest.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
- '**/*.txt'
3333
all:
3434
- '**/*'
35+
common_deps:
36+
- '**/src/hyperlight_guest/Cargo.toml'
37+
- '**/src/hyperlight_common/Cargo.toml'
3538
- uses: actions/github-script@v7
3639
id: docs-only
3740
with:
@@ -43,7 +46,7 @@ jobs:
4346
# Check to see if this a dependabot PR and if it updates either the common or guest Cargo.toml files
4447
# if it does we need to try and generate a new Cargo.lock file as the PR validation checks that these are up to date
4548
- name: Update Cargo.lock for dependabot changes
46-
if: ${{ github.actor == 'dependabot[bot]' && (github.event.pull_request.changed_files.* == 'src/hyperlight_common/Cargo.toml' || github.event.pull_request.changed_files.* == 'src/hyperlight_guest/Cargo.toml') }}
49+
if: ${{ github.actor == 'dependabot[bot]' && steps.changes.outputs.common_deps_count > 0 }}
4750
run: |
4851
cargo update --manifest-path src/tests/rust_guests/simpleguest/Cargo.toml
4952
cargo update --manifest-path src/tests/rust_guests/callbackguest/Cargo.toml

0 commit comments

Comments
 (0)