Skip to content

Commit 1a4cf9e

Browse files
authored
Fixed only get one (#15)
1 parent 6052484 commit 1a4cf9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-deploy-backend.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,14 @@ jobs:
141141
WORKFLOW_RUN_ID: ${{ github.run_id }}
142142
run: |
143143
API_URL="https://api.github.com/orgs/${OWNER}/audit-log"
144-
TIMESTAMP_24H_AGO=$(date -u -d '1 day ago' +"%Y-%m-%dT%H:%M:%SZ")
145144
146145
curl -s -H "Authorization: Bearer ${GH_TOKEN}" \
147146
-H "Accept: application/vnd.github+json" \
148147
--get \
149148
--data-urlencode "phrase=repo:${OWNER}/${REPO}" \
150149
--data-urlencode "phrase=action:workflows.approve_workflow_job" \
151-
--data-urlencode "created_after=${TIMESTAMP_24H_AGO}" \
150+
--data-urlencode "per_page=1" \
151+
--data-urlencode "page=1" \
152152
"$API_URL" > audit.json
153153
154154
APPROVER=$(jq -r --arg run_id "$WORKFLOW_RUN_ID" '

0 commit comments

Comments
 (0)