We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6052484 commit 1a4cf9eCopy full SHA for 1a4cf9e
.github/workflows/build-deploy-backend.yml
@@ -141,14 +141,14 @@ jobs:
141
WORKFLOW_RUN_ID: ${{ github.run_id }}
142
run: |
143
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")
145
146
curl -s -H "Authorization: Bearer ${GH_TOKEN}" \
147
-H "Accept: application/vnd.github+json" \
148
--get \
149
--data-urlencode "phrase=repo:${OWNER}/${REPO}" \
150
--data-urlencode "phrase=action:workflows.approve_workflow_job" \
151
- --data-urlencode "created_after=${TIMESTAMP_24H_AGO}" \
+ --data-urlencode "per_page=1" \
+ --data-urlencode "page=1" \
152
"$API_URL" > audit.json
153
154
APPROVER=$(jq -r --arg run_id "$WORKFLOW_RUN_ID" '
0 commit comments