Skip to content

Commit 82335ba

Browse files
agarneha1331francisf
authored andcommitted
Fix workflow file
1 parent d212ac8 commit 82335ba

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/reviewing_changes.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This job is to test different profiles in sdk branch against Pull Requests raised
22
# This workflow targets nunit
33

4-
name: C-sharp SDK Test workflow on workflow_dispatch(from master branch)
4+
name: C-sharp SDK Test workflow on workflow_dispatch
55

66
on:
77
workflow_dispatch:
@@ -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: NUnit Repo ${{ matrix.dotnet }} - ${{ matrix.os }} Sample
35+
commit_sha: ${{ github.event.inputs.commit_sha }}
4036
with:
4137
github-token: ${{ github.token }}
4238
script: |
@@ -71,6 +67,7 @@ jobs:
7167
env:
7268
conclusion: ${{ job.status }}
7369
job_name: NUnit Repo ${{ matrix.dotnet }} - ${{ matrix.os }} Sample
70+
commit_sha: ${{ github.event.inputs.commit_sha }}
7471
with:
7572
github-token: ${{ github.token }}
7673
script: |

0 commit comments

Comments
 (0)