@@ -15,10 +15,10 @@ concurrency:
1515
1616permissions :
1717 id-token : write
18- contents : read
18+ contents : write
1919
2020jobs :
21- docs-pr :
21+ docs-and-common-deps- pr :
2222 runs-on : ubuntu-latest
2323 outputs :
2424 docs-only : ${{ steps.docs-only.outputs.result }}
@@ -46,16 +46,18 @@ jobs:
4646 # Check to see if this a dependabot PR and if it updates either the common or guest Cargo.toml files
4747 # 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
4848 - name : checkout
49- uses : actions/checkout@v4
5049 if : ${{ github.actor == 'dependabot[bot]' && steps.changes.outputs.common_deps_count > 0 }}
50+ uses : actions/checkout@v4
51+ with :
52+ ref : ${{ github.head_ref }}
5153 - name : Update Cargo.lock for dependabot changes
5254 if : ${{ github.actor == 'dependabot[bot]' && steps.changes.outputs.common_deps_count > 0 }}
5355 run : |
5456 cargo update --manifest-path src/tests/rust_guests/simpleguest/Cargo.toml
5557 cargo update --manifest-path src/tests/rust_guests/callbackguest/Cargo.toml
5658 if [ -n "$(git status --porcelain src/tests/rust_guests/simpleguest/Cargo.lock src/tests/rust_guests/callbackguest/Cargo.lock)" ]; then
57- git config --global user.name "github-actions[bot]"
58- git config --global user.email "github-actions[bot]@users.noreply.github.com"
59+ git config user.name "github-actions[bot]"
60+ git config user.email "41898282+ github-actions[bot]@users.noreply.github.com"
5961 git add src/tests/rust_guests/simpleguest/Cargo.lock
6062 git add src/tests/rust_guests/callbackguest/Cargo.lock
6163 git commit -m "Update Cargo.lock files for dependabot changes"
@@ -64,19 +66,19 @@ jobs:
6466
6567 rust :
6668 needs :
67- - docs-pr
69+ - docs-and-common-deps- pr
6870 uses : ./.github/workflows/dep_rust.yml
6971 secrets : inherit
7072 with :
71- docs_only : ${{needs.docs-pr.outputs.docs-only}}
73+ docs_only : ${{needs.docs-and-common-deps- pr.outputs.docs-only}}
7274
7375 fuzzing :
7476 needs :
75- - docs-pr
77+ - docs-and-common-deps- pr
7678 uses : ./.github/workflows/dep_fuzzing.yml
7779 with :
7880 max_total_time : 300 # 5 minutes in seconds
79- docs_only : ${{needs.docs-pr.outputs.docs-only}}
81+ docs_only : ${{needs.docs-and-common-deps- pr.outputs.docs-only}}
8082 secrets : inherit
8183
8284 spelling :
0 commit comments