Skip to content

Commit 844d025

Browse files
committed
Add the PR numher and output to action output
This is so they both can be referenced in another step. Signed-off-by: Chihurumnaya Ibiam <[email protected]>
1 parent 22b63ed commit 844d025

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ jobs:
5555
echo "${{ env.FAILED_TESTS }}"
5656
echo '```'
5757
} > "$COMMENT_FILE"
58+
echo "COMMENT_FILE=$COMMENT_FILE" >> GITHUB_OUTPUT
59+
echo "PR_NUMBER=$PR_NUMBER" >> GITHUB_OUTPUT
5860
5961
- name: PR comment
6062
uses: thollander/actions-comment-pull-request@v3
61-
env:
62-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6363
with:
6464
file-path: ${{ steps.results.outputs.COMMENT_FILE }}
6565
pr-number: ${{ steps.results.outputs.PR_NUMBER }}

0 commit comments

Comments
 (0)