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:
22
22
- name : Installing packages
23
23
run : cd performance && npm ci
24
24
- name : Get PR number being merged
25
+ env :
26
+ PAGE : 1
27
+ PER_PAGE : 10
25
28
run : |
26
29
RESPONSE=$(curl -L \
27
30
-X GET \
28
31
-H "Accept: application/vnd.github+json" \
29
32
-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 }} ")
31
34
LATEST_PR_NUMBER=$(echo "$RESPONSE" | jq -r '.[] | select(.merged_at != null) | .number' | head -1)
32
35
echo "GITHUB_PR_NUMBER=$LATEST_PR_NUMBER" >> $GITHUB_ENV
33
36
- name : Generating lighthouse reports for main...
You can’t perform that action at this time.
0 commit comments