Skip to content

Commit

Permalink
Merge pull request #126 from agarneha1331/fix-workflow
Browse files Browse the repository at this point in the history
Fix workflow file
  • Loading branch information
karanshah-browserstack authored Jul 11, 2023
2 parents f6c944f + f5577a8 commit 8ad74f7
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/maven-workflow-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ name: TestNG SDK Test workflow for Maven on workflow_dispatch
on:
workflow_dispatch:
inputs:
pull_request_number:
description: 'The pull request number to build'
commit_sha:
description: 'The full commit id to build'
required: true

jobs:
Expand All @@ -27,16 +27,12 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: refs/pull/${{ github.event.inputs.pull_request_number }}/head
- name: Fetch Commit SHA
run: |
git log -1 --format='%H'
echo "commit_sha=$(git log -1 --format='%H')" >> $GITHUB_ENV
echo "commit_sha=$(git log -1 --format='%H')" >> $env:GITHUB_ENV
ref: ${{ github.event.inputs.commit_sha }}
- uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975
id: status-check-in-progress
env:
job_name: TestNG Repo ${{ matrix.Java }} - ${{ matrix.os }} Sample
commit_sha: ${{ github.event.inputs.commit_sha }}
with:
github-token: ${{ github.token }}
script: |
Expand Down Expand Up @@ -74,6 +70,7 @@ jobs:
env:
conclusion: ${{ job.status }}
job_name: TestNG Repo ${{ matrix.Java }} - ${{ matrix.os }} Sample
commit_sha: ${{ github.event.inputs.commit_sha }}
with:
github-token: ${{ github.token }}
script: |
Expand Down

0 comments on commit 8ad74f7

Please sign in to comment.