From 096f6b5f4137c914f9f7e19e92e6e8eb7383bdb1 Mon Sep 17 00:00:00 2001 From: Simon Davies Date: Thu, 30 Jan 2025 22:22:47 +0000 Subject: [PATCH] Update Cargo.lock for dependency updates in common crates Signed-off-by: Simon Davies --- .github/workflows/ValidatePullRequest.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ValidatePullRequest.yml b/.github/workflows/ValidatePullRequest.yml index 829db806e..d9c7b1638 100644 --- a/.github/workflows/ValidatePullRequest.yml +++ b/.github/workflows/ValidatePullRequest.yml @@ -32,6 +32,9 @@ jobs: - '**/*.txt' all: - '**/*' + common_deps: + - '**/src/hyperlight_guest/Cargo.toml' + - '**/src/hyperlight_common/Cargo.toml' - uses: actions/github-script@v7 id: docs-only with: @@ -43,7 +46,7 @@ jobs: # Check to see if this a dependabot PR and if it updates either the common or guest Cargo.toml files # 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 - name: Update Cargo.lock for dependabot changes - 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') }} + if: ${{ github.actor == 'dependabot[bot]' && steps.changes.outputs.common_deps_count > 0 }} run: | cargo update --manifest-path src/tests/rust_guests/simpleguest/Cargo.toml cargo update --manifest-path src/tests/rust_guests/callbackguest/Cargo.toml