Skip to content

Commit

Permalink
more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
sabban committed Apr 25, 2024
1 parent 4ddf0fa commit 0a33c13
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/populate-hapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,18 @@ jobs:
run: |
echo ${{ github.event.action }}
URL=$(jq -r '.repository.commits_url' $GITHUB_EVENT_PATH | sed 's/{\/sha}//')
COMMITS=""
PAGE=1
curl -sSL -H "Authorization: token $GITHUB_TOKEN" "$URL?page=$PAGE&per_page=100"
while true; do
PAGE_COMMITS=$(curl -sSL -H "Authorization: token $GITHUB_TOKEN" "$URL?page=$PAGE&per_page=100" | jq -r '.[].sha')
if [ -z "$PAGE_COMMITS" ]; then
break
fi
COMMITS="$COMMITS $PAGE_COMMITS"
PAGE=$((PAGE + 1))
done
# URL=$(jq -r '.repository.commits_url' $GITHUB_EVENT_PATH | sed 's/{\/sha}//')
# COMMITS=""
# PAGE=1
# curl -sSL -H "Authorization: token $GITHUB_TOKEN" "$URL?page=$PAGE&per_page=100"
# while true; do
# PAGE_COMMITS=$(curl -sSL -H "Authorization: token $GITHUB_TOKEN" "$URL?page=$PAGE&per_page=100" | jq -r '.[].sha')
# if [ -z "$PAGE_COMMITS" ]; then
# break
# fi
# COMMITS="$COMMITS $PAGE_COMMITS"
# PAGE=$((PAGE + 1))
# done
#echo $COMMITS
- name: Print modified files
Expand Down

0 comments on commit 0a33c13

Please sign in to comment.