Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
jaytaph committed Nov 30, 2023
1 parent a3781d0 commit e280b30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/check_author.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash -x
#!/bin/bash

set -x

# Fetch the PR author's email
PR_AUTHOR_EMAIL=$(jq -r ".pull_request.user.email" "$GITHUB_EVENT_PATH")
Expand All @@ -12,5 +14,5 @@ else
PAYLOAD=$(jq -n --arg body "$COMMENT" '{body: $body}')
COMMENTS_URL=$(jq -r .pull_request.comments_url "$GITHUB_EVENT_PATH")

curl -s -S -H "Authorization: token $GITHUB_TOKEN" --header "Content-Type: application/json" --data "$PAYLOAD" "$COMMENTS_URL"
curl -s -S -H "Authorization: Bearer $GITHUB_TOKEN" --header "Content-Type: application/json" --data "$PAYLOAD" "$COMMENTS_URL"
fi
2 changes: 1 addition & 1 deletion .github/workflows/pr-author-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
sh .github/workflows/check_author.sh
sh -x .github/workflows/check_author.sh

0 comments on commit e280b30

Please sign in to comment.