We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70c6fa0 commit cc23941Copy full SHA for cc23941
.github/workflows/email-check.yaml
@@ -22,6 +22,8 @@ jobs:
22
23
- name: Extract author email
24
id: author
25
+ env:
26
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27
run: |
28
# Use Github GraphQL APIs to get the email associated with the PR author.
29
query='
@@ -33,7 +35,7 @@ jobs:
33
35
34
36
PR_AUTHOR=${{ github.event.pull_request.user.login }}
37
- 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')
39
echo "EMAIL_AUTHOR_GH_UI=$email" >> "$GITHUB_OUTPUT"
40
41
# Print the email to the log for debugging purposes.
0 commit comments