From a073a8dc286e08d103bde1e1ba88ae8743752b0e Mon Sep 17 00:00:00 2001 From: Brian Duranleau Date: Tue, 27 Aug 2024 12:34:49 -0500 Subject: [PATCH 1/2] fix(ci): add checkout to allow gh cli to run --- .github/workflows/issue-comment.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/issue-comment.yml b/.github/workflows/issue-comment.yml index cd72f7874..1ba0bea8d 100644 --- a/.github/workflows/issue-comment.yml +++ b/.github/workflows/issue-comment.yml @@ -23,6 +23,12 @@ jobs: env: GH_TOKEN: ${{ secrets.token }} steps: + - name: Checkout newrelic-php-agent code + uses: actions/checkout@v4 + with: + path: php-agent + repository: ${{ inputs.origin }}/newrelic-php-agent + ref: ${{ inputs.ref }} - name: respond to issue run: | gh issue comment ${{ inputs.issue-number }} --body "${{ inputs.message }}" From 437ce7491bb79c0343491ec07e9e4a3d6ecb4212 Mon Sep 17 00:00:00 2001 From: Brian Duranleau Date: Thu, 5 Sep 2024 12:29:09 -0500 Subject: [PATCH 2/2] fix: use cli for checkout --- .github/workflows/issue-comment.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/issue-comment.yml b/.github/workflows/issue-comment.yml index 1ba0bea8d..ba345e98a 100644 --- a/.github/workflows/issue-comment.yml +++ b/.github/workflows/issue-comment.yml @@ -23,12 +23,6 @@ jobs: env: GH_TOKEN: ${{ secrets.token }} steps: - - name: Checkout newrelic-php-agent code - uses: actions/checkout@v4 - with: - path: php-agent - repository: ${{ inputs.origin }}/newrelic-php-agent - ref: ${{ inputs.ref }} - name: respond to issue run: | - gh issue comment ${{ inputs.issue-number }} --body "${{ inputs.message }}" + gh issue -R ${{ github.repository }} comment ${{ inputs.issue-number }} --body "${{ inputs.message }}"