File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,15 @@ jobs:
2222 - name : Installing packages
2323 run : cd performance && npm ci
2424 - name : Get PR number being merged
25+ env :
26+ PAGE : 1
27+ PER_PAGE : 10
2528 run : |
2629 RESPONSE=$(curl -L \
2730 -X GET \
2831 -H "Accept: application/vnd.github+json" \
2932 -H "X-GitHub-Api-Version: 2022-11-28" \
30- -s "https://api.github.com/repos/${{ env.OWNER }}/${{ env.REPO }}/pulls?state=closed&direction=desc&page=1 &per_page=5 ")
33+ -s "https://api.github.com/repos/${{ env.OWNER }}/${{ env.REPO }}/pulls?state=closed&direction=desc&page=${{ env.PAGE }} &per_page=${{ env.PER_PAGE }} ")
3134 LATEST_PR_NUMBER=$(echo "$RESPONSE" | jq -r '.[] | select(.merged_at != null) | .number' | head -1)
3235 echo "GITHUB_PR_NUMBER=$LATEST_PR_NUMBER" >> $GITHUB_ENV
3336 - name : Generating lighthouse reports for main...
You can’t perform that action at this time.
0 commit comments