Skip to content

Commit cc23941

Browse files
committed
Minor fix
1 parent 70c6fa0 commit cc23941

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/email-check.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222

2323
- name: Extract author email
2424
id: author
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2527
run: |
2628
# Use Github GraphQL APIs to get the email associated with the PR author.
2729
query='
@@ -33,7 +35,7 @@ jobs:
3335
3436
PR_AUTHOR=${{ github.event.pull_request.user.login }}
3537
36-
email=$(gh api graphql -f login="$PR_AUTHOR" -f query="$query" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" --jq '.data.user.email')
38+
email=$(gh api graphql -f login="$PR_AUTHOR" -f query="$query" -H "Authorization: Bearer $GITHUB_TOKEN" --jq '.data.user.email')
3739
echo "EMAIL_AUTHOR_GH_UI=$email" >> "$GITHUB_OUTPUT"
3840
3941
# Print the email to the log for debugging purposes.

0 commit comments

Comments
 (0)