Skip to content

Commit ef02fc7

Browse files
committed
Use GH action for comments
I want to avoid future mentions as the current PAT is mine. Signed-off-by: Chihurumnaya Ibiam <ibiam@sugarlabs.org>
1 parent 9ff7ee4 commit ef02fc7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/pr-jest-tests.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,9 @@ jobs:
8080
fi
8181
} > "$COMMENT_FILE"
8282
83-
- name: Post PR Comment using gh CLI
84-
env:
85-
GITHUB_TOKEN: ${{ secrets.PAT }}
86-
COMMENT_FILE: ${{ steps.results.outputs.COMMENT_FILE }}
87-
PR_NUMBER: ${{ steps.results.outputs.PR_NUMBER }}
88-
run: |
89-
gh pr comment "$PR_NUMBER" --body-file "$COMMENT_FILE"
83+
- name: PR comment
84+
uses: thollander/actions-comment-pull-request@v3
85+
with:
86+
file-path: ${{ steps.results.outputs.COMMENT_FILE }}
87+
pr-number: ${{ steps.results.outputs.PR_NUMBER }}
88+
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)