File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ jobs:
128
128
# Build the scanner tarball so it can be installed locally when we run tests.
129
129
build-scanner-tarball :
130
130
name : ' Build scanner tarball'
131
+ needs : verify-should-run
131
132
uses : ./.github/workflows/build-scanner-tarball.yml
132
133
with :
133
134
# Note: Using `dev` here is technically incorrect. For full completeness's sake, we should probably be
@@ -138,9 +139,10 @@ jobs:
138
139
# Run all the various tests against the newly created branch.
139
140
test-release-branch :
140
141
name : ' Run unit tests'
141
- needs : build-scanner-tarball
142
+ needs : [ build-scanner-tarball, create-release-branch]
142
143
uses : ./.github/workflows/run-tests.yml
143
144
with :
144
145
# We want to validate the extension against whatever version of the scanner we *plan* to publish,
145
146
# not what's *already* published.
146
147
use-scanner-tarball : true
148
+ target-branch : ${{ needs.create-release-branch.outputs.branch-name }}
Original file line number Diff line number Diff line change 7
7
required : false
8
8
type : boolean
9
9
default : false
10
+ target-branch :
11
+ description : " What branch should be checked out?"
12
+ required : falsetype: string
13
+ # If no target branch is specified, just use the one we'd use normally.
14
+ default : ${{ github.sha }}
10
15
11
16
jobs :
12
17
build-and-run :
17
22
steps :
18
23
- name : ' Check out the code'
19
24
uses : actions/checkout@v4
25
+ with :
26
+ ref : ${{ inputs.target-branch }}
20
27
- name : ' Set up NodeJS'
21
28
uses : actions/setup-node@v4
22
29
with :
You can’t perform that action at this time.
0 commit comments