File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ name: Java SDK Test workflow for Maven on workflow_dispatch
66on :
77 workflow_dispatch :
88 inputs :
9- pull_request_number :
10- description : ' The pull request number to build'
9+ commit_sha :
10+ description : ' The commit id to build'
1111 required : true
1212
1313jobs :
@@ -27,12 +27,11 @@ jobs:
2727 steps :
2828 - uses : actions/checkout@v3
2929 with :
30- ref : refs/pull/ ${{ github.event.inputs.pull_request_number }}/head
31- - name : Fetch Commit SHA
30+ ref : ${{ github.event.inputs.commit_sha }}
31+ - name : Commit SHA
3232 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
33+ echo "commit_sha=${{ github.event.inputs.commit_sha }}" >> $GITHUB_ENV
34+ echo "commit_sha=${{ github.event.inputs.commit_sha }}" >> $env:GITHUB_ENV
3635 - uses : actions/github-script@98814c53be79b1d30f795b907e553d8679345975
3736 id : status-check-in-progress
3837 env :
You can’t perform that action at this time.
0 commit comments