@@ -15,10 +15,10 @@ concurrency:
15
15
16
16
permissions :
17
17
id-token : write
18
- contents : read
18
+ contents : write
19
19
20
20
jobs :
21
- docs-pr :
21
+ docs-and-common-deps- pr :
22
22
runs-on : ubuntu-latest
23
23
outputs :
24
24
docs-only : ${{ steps.docs-only.outputs.result }}
@@ -46,16 +46,18 @@ jobs:
46
46
# Check to see if this a dependabot PR and if it updates either the common or guest Cargo.toml files
47
47
# 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
48
48
- name : checkout
49
- uses : actions/checkout@v4
50
49
if : ${{ github.actor == 'dependabot[bot]' && steps.changes.outputs.common_deps_count > 0 }}
50
+ uses : actions/checkout@v4
51
+ with :
52
+ ref : ${{ github.head_ref }}
51
53
- name : Update Cargo.lock for dependabot changes
52
54
if : ${{ github.actor == 'dependabot[bot]' && steps.changes.outputs.common_deps_count > 0 }}
53
55
run : |
54
56
cargo update --manifest-path src/tests/rust_guests/simpleguest/Cargo.toml
55
57
cargo update --manifest-path src/tests/rust_guests/callbackguest/Cargo.toml
56
58
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"
59
61
git add src/tests/rust_guests/simpleguest/Cargo.lock
60
62
git add src/tests/rust_guests/callbackguest/Cargo.lock
61
63
git commit -m "Update Cargo.lock files for dependabot changes"
@@ -64,19 +66,19 @@ jobs:
64
66
65
67
rust :
66
68
needs :
67
- - docs-pr
69
+ - docs-and-common-deps- pr
68
70
uses : ./.github/workflows/dep_rust.yml
69
71
secrets : inherit
70
72
with :
71
- docs_only : ${{needs.docs-pr.outputs.docs-only}}
73
+ docs_only : ${{needs.docs-and-common-deps- pr.outputs.docs-only}}
72
74
73
75
fuzzing :
74
76
needs :
75
- - docs-pr
77
+ - docs-and-common-deps- pr
76
78
uses : ./.github/workflows/dep_fuzzing.yml
77
79
with :
78
80
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}}
80
82
secrets : inherit
81
83
82
84
spelling :
0 commit comments