Skip to content

Commit 8ad74f7

Browse files
Merge pull request #126 from agarneha1331/fix-workflow
Fix workflow file
2 parents f6c944f + f5577a8 commit 8ad74f7

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/maven-workflow-run.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ name: TestNG SDK Test workflow for Maven on workflow_dispatch
66
on:
77
workflow_dispatch:
88
inputs:
9-
pull_request_number:
10-
description: 'The pull request number to build'
9+
commit_sha:
10+
description: 'The full commit id to build'
1111
required: true
1212

1313
jobs:
@@ -27,16 +27,12 @@ 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
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 }}
3631
- uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975
3732
id: status-check-in-progress
3833
env:
3934
job_name: TestNG Repo ${{ matrix.Java }} - ${{ matrix.os }} Sample
35+
commit_sha: ${{ github.event.inputs.commit_sha }}
4036
with:
4137
github-token: ${{ github.token }}
4238
script: |
@@ -74,6 +70,7 @@ jobs:
7470
env:
7571
conclusion: ${{ job.status }}
7672
job_name: TestNG Repo ${{ matrix.Java }} - ${{ matrix.os }} Sample
73+
commit_sha: ${{ github.event.inputs.commit_sha }}
7774
with:
7875
github-token: ${{ github.token }}
7976
script: |

0 commit comments

Comments
 (0)