File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ name: TestNG SDK Test workflow for Maven on workflow_dispatch
6
6
on :
7
7
workflow_dispatch :
8
8
inputs :
9
- pull_request_number :
10
- description : ' The pull request number to build'
9
+ commit_sha :
10
+ description : ' The full commit id to build'
11
11
required : true
12
12
13
13
jobs :
@@ -27,16 +27,12 @@ jobs:
27
27
steps :
28
28
- uses : actions/checkout@v3
29
29
with :
30
- ref : refs/pull/${{ github.event.inputs.pull_request_number }}/head
31
- - name : Fetch Commit SHA
32
- run : |
33
- git log -1 --format='%H'
34
- echo "commit_sha=$(git log -1 --format='%H')" >> $GITHUB_ENV
35
- echo "commit_sha=$(git log -1 --format='%H')" >> $env:GITHUB_ENV
30
+ ref : ${{ github.event.inputs.commit_sha }}
36
31
- uses : actions/github-script@98814c53be79b1d30f795b907e553d8679345975
37
32
id : status-check-in-progress
38
33
env :
39
34
job_name : TestNG Repo ${{ matrix.Java }} - ${{ matrix.os }} Sample
35
+ commit_sha : ${{ github.event.inputs.commit_sha }}
40
36
with :
41
37
github-token : ${{ github.token }}
42
38
script : |
74
70
env :
75
71
conclusion : ${{ job.status }}
76
72
job_name : TestNG Repo ${{ matrix.Java }} - ${{ matrix.os }} Sample
73
+ commit_sha : ${{ github.event.inputs.commit_sha }}
77
74
with :
78
75
github-token : ${{ github.token }}
79
76
script : |
You can’t perform that action at this time.
0 commit comments