Skip to content

Commit bb918d4

Browse files
committed
explciit dynamic ref for fix
1 parent 0790b2c commit bb918d4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/extended.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
repo: context.repo.repo,
5555
body: "Running extended tests..."
5656
})
57+
5758
# Check crate compiles and base cargo check passes
5859
linux-build-lib:
5960
name: linux build test
@@ -65,6 +66,11 @@ jobs:
6566
(github.event_name == 'issue_comment' && github.event.issue.pull_request && github.event.comment.body == 'run extended tests')
6667
steps:
6768
- uses: actions/checkout@v4
69+
with:
70+
# Check out the pull request branch if triggered by a comment
71+
ref: ${{ github.event_name == 'issue_comment' && github.event.issue.pull_request.head.ref || github.ref }}
72+
submodules: true
73+
fetch-depth: 1
6874
- name: Setup Rust toolchain
6975
uses: ./.github/actions/setup-builder
7076
with:
@@ -85,6 +91,8 @@ jobs:
8591
steps:
8692
- uses: actions/checkout@v4
8793
with:
94+
# Check out the pull request branch if triggered by a comment
95+
ref: ${{ github.event_name == 'issue_comment' && github.event.issue.pull_request.head.ref || github.ref }}
8896
submodules: true
8997
fetch-depth: 1
9098
- name: Setup Rust toolchain
@@ -108,6 +116,8 @@ jobs:
108116
steps:
109117
- uses: actions/checkout@v4
110118
with:
119+
# Check out the pull request branch if triggered by a comment
120+
ref: ${{ github.event_name == 'issue_comment' && github.event.issue.pull_request.head.ref || github.ref }}
111121
submodules: true
112122
fetch-depth: 1
113123
- name: Setup Rust toolchain
@@ -130,6 +140,8 @@ jobs:
130140
steps:
131141
- uses: actions/checkout@v4
132142
with:
143+
# Check out the pull request branch if triggered by a comment
144+
ref: ${{ github.event_name == 'issue_comment' && github.event.issue.pull_request.head.ref || github.ref }}
133145
submodules: true
134146
fetch-depth: 1
135147
- name: Setup Rust toolchain

0 commit comments

Comments
 (0)