diff --git a/.github/workflows/comment_on_pr.yaml b/.github/workflows/comment_on_pr.yaml index 6e6381087..60183667d 100644 --- a/.github/workflows/comment_on_pr.yaml +++ b/.github/workflows/comment_on_pr.yaml @@ -38,12 +38,6 @@ jobs: echo "Artifact ID: $ARTIFACT_ID" echo "ARTIFACT_ID=$ARTIFACT_ID" >> "$GITHUB_ENV" - PR_NUMBER=$(jq -r '.pull_requests[0].number' \ - <<< "$WORKFLOW_RUN_EVENT_OBJ") - - echo "Pull request Number: $PR_NUMBER" - echo "PR_NUMBER=$PR_NUMBER" >> "$GITHUB_ENV" - HEAD_SHA=$(jq -r '.pull_requests[0].head.sha' \ <<< "$WORKFLOW_RUN_EVENT_OBJ") @@ -64,7 +58,7 @@ jobs: HEAD_SHA: "${{ env.HEAD_SHA }}" uses: peter-evans/create-or-update-comment@v3 with: - issue-number: ${{ env.PR_NUMBER }} + issue-number: ${{ github.event.number }} comment-id: ${{ steps.find-comment.outputs.comment-id }} edit-mode: replace body: |-