Skip to content

Commit

Permalink
Fix workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
agarneha1331 authored and francisf committed Jul 11, 2023
1 parent 38a22bf commit 970da72
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: Java 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 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: JBehave 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: JBehave 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 970da72

Please sign in to comment.