File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,18 @@ jobs:
3434 runs-on : ubuntu-latest
3535 steps :
3636 - uses : actions/checkout@v5
37+ if : github.event.inputs.pr_number != ''
3738 with :
3839 ref : ' refs/pull/${{ github.event.inputs.pr_number }}/merge'
3940 fetch-depth : 0
4041
42+ - uses : actions/checkout@v5
43+ if : github.event.inputs.pr_number == ''
44+ with :
45+ fetch-depth : 0
46+
4147 - name : Check SHA
48+ if : github.event.inputs.pr_number != '' && github.event.inputs.sha != ''
4249 run : |
4350 git fetch origin refs/pull/${{ github.event.inputs.pr_number }}/head:pr-head
4451 prsha=`git rev-parse pr-head | awk '{ print $1 }'`
@@ -133,12 +140,18 @@ jobs:
133140 concurrency : integration-test-${{ matrix.source-vcs }}-${{ matrix.runner-os }}
134141 steps :
135142 - uses : actions/checkout@v5
143+ if : github.event.inputs.pr_number != ''
136144 with :
137145 ref : ' refs/pull/${{ github.event.inputs.pr_number }}/merge'
138146 fetch-depth : 0
139147
148+ - uses : actions/checkout@v5
149+ if : github.event.inputs.pr_number == ''
150+ with :
151+ fetch-depth : 0
152+
140153 - name : Get PR Commit
141- if : always() && matrix.runner-os == 'ubuntu-latest'
154+ if : always() && matrix.runner-os == 'ubuntu-latest' && github.event.inputs.pr_number != ''
142155 run : |
143156 prsha=`git ls-remote origin refs/pull/${{ github.event.inputs.pr_number }}/head | awk '{ print $1 }'`
144157 echo "SHA: $prsha"
You can’t perform that action at this time.
0 commit comments