Skip to content

Commit

Permalink
chore: pr comment branch reference (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgracki authored Nov 1, 2023
1 parent 1acb325 commit 94e5a2c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/run-tests-on-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ jobs:
runs-on: ubuntu-latest
if: contains(github.event.comment.body, '/test')
steps:
- name: Get PR branch
uses: xt0rted/pull-request-comment-branch@v1
id: comment-branch
- name: Set latest commit status as pending
uses: myrotvorets/set-commit-status-action@master
with:
sha: ${{ github.event.pull_request.base.sha }}
sha: ${{ steps.comment-branch.outputs.head_sha }}
token: ${{ secrets.PAT_TOKEN }}
status: pending
- uses: actions/checkout@v3
Expand Down Expand Up @@ -55,6 +58,6 @@ jobs:
uses: myrotvorets/set-commit-status-action@master
if: always()
with:
sha: ${{ github.event.pull_request.base.sha }}
sha: ${{ steps.comment-branch.outputs.head_sha }}
token: ${{ secrets.PAT_TOKEN }}
status: ${{ job.status }}

0 comments on commit 94e5a2c

Please sign in to comment.