diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index f2ee905..581e091 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -13,10 +13,17 @@ jobs: runs-on: ubuntu-latest permissions: pull-requests: write + if: github.event.issue.pull_request steps: + - name: Get PR branch + uses: xt0rted/pull-request-comment-branch@v1 + id: comment-branch + - name: Checkout id: checkout uses: actions/checkout@v4 + with: + ref: ${{ steps.comment-branch.outputs.head_ref }} - name: Test Local Action id: test-action