Skip to content

Commit

Permalink
Modify user check
Browse files Browse the repository at this point in the history
Signed-off-by: Zhengyi Lai <[email protected]>
  • Loading branch information
zheng1 committed Apr 11, 2024
1 parent 6bd1b06 commit 217de83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ks_all_contributors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -ex
[ -f "$GITHUB_ENV" ] && source $GITHUB_ENV

# Check if the token is valid
curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/user" | grep 200
curl -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/" | grep current_user_url

for i in $(cat ks_repo.txt);
do
Expand Down
2 changes: 1 addition & 1 deletion ks_all_contributors_within_two_weeks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM_DATE=$(date -d'14 day ago' +%Y-%m-%d)
UNTIL_DATE=$(date +%Y-%m-%d)

# Check if the token is valid
curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/user" | grep 200
curl -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/" | grep current_user_url

for i in $(cat ks_repo.txt);
do
Expand Down

0 comments on commit 217de83

Please sign in to comment.