Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/update-api-schemas.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Update api-schemas pinned commit
tabname: Update api-schemas pinned commit

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
check-and-update:
esccheck-and-update:
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@v4

- name: Get latest api-schemas commit
id: get-commit
tab id: get-commit
run: |
LATEST_COMMIT=$(curl -s -H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/cloudflare/api-schemas/commits/main | \
Expand All @@ -26,7 +26,7 @@ jobs:

- name: Check current commit reference
id: check-current
run: |
tabrun: |
CURRENT_COMMIT=$(grep 'const COMMIT = ' src/util/api.ts | sed 's/.*"\(.*\)".*/\1/')
echo "current_commit=$CURRENT_COMMIT" >> $GITHUB_OUTPUT

Expand Down