Skip to content

Commit c437c83

Browse files
authored
Merge branch 'production' into max/gw/http-redirect
2 parents 4c26b35 + 37094fe commit c437c83

File tree

994 files changed

+38186
-8590
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

994 files changed

+38186
-8590
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
/src/content/release-notes/workers-ai.yaml @kathayl @G4brym @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
2929
/src/content/release-notes/ai-gateway.yaml @kathayl @G4brym @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
3030
/src/content/release-notes/vectorize.yaml @elithrar @mchenco @sejoker @cloudflare/pcx-technical-writing
31+
/src/content/docs/autorag/ @rita3ko @irvinebroque @aninibread @ToriLindsay @cloudflare/pcx-technical-writing
3132

3233
# Analytics & Logs
3334

@@ -202,6 +203,7 @@
202203
/src/content/docs/dmarc-management/ @Maddy-Cloudflare @cloudflare/pcx-technical-writing
203204
/src/content/docs/firewall/ @pedrosousa @cloudflare/firewall @cloudflare/pcx-technical-writing
204205
/src/content/docs/page-shield/ @pedrosousa @cloudflare/pcx-technical-writing
206+
/src/content/docs/secrets-store/ @RebeccaTamachiro @cloudflare/pcx-technical-writing
205207
/src/content/docs/security-center/ @jason-cf @cloudflare/pcx-technical-writing
206208
/src/content/docs/ssl/ @RebeccaTamachiro @cloudflare/pcx-technical-writing
207209
/src/content/docs/waf/ @pedrosousa @cloudflare/firewall @cloudflare/pcx-technical-writing

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/cache/restore@v4
2525
with:
2626
path: |
27-
node_modules/.astro
27+
node_modules/.astro/assets
2828
key: static
2929

3030
- run: npm ci
@@ -49,7 +49,7 @@ jobs:
4949
- uses: actions/cache/save@v4
5050
with:
5151
path: |
52-
node_modules/.astro
52+
node_modules/.astro/assets
5353
key: static
5454

5555
- name: Check - Validate redirects (infinite loops, sources with fragment)

.github/workflows/image-audit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
id: find-files
2222
run: |
2323
# Find all .png and .svg files, but only look in the ./src/assets/images directory
24-
FILES=$(find . -type f \( -name "*.png" -o -name "*.svg" \) -path "./src/assets/images/*" -not -path "./src/assets/images/workers-ai/*.svg" -not -path "./src/assets/images/workers/ai/*.png" -not -path "./src/assets/images/changelog-next/*")
24+
FILES=$(find . -type f \( -name "*.png" -o -name "*.svg" \) -path "./src/assets/images/*" -not -path "./src/assets/images/workers-ai/*.svg" -not -path "./src/assets/images/workers/ai/*.png" -not -path "./src/assets/images/changelog/*")
2525
2626
# Check if files are referenced in any markdown file
2727
UNUSED_FILES=""

.github/workflows/publish-preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/cache/restore@v4
2828
with:
2929
path: |
30-
node_modules/.astro
30+
node_modules/.astro/assets
3131
key: static
3232
- run: npm run build
3333
name: Build
@@ -51,5 +51,5 @@ jobs:
5151
if: always()
5252
with:
5353
path: |
54-
node_modules/.astro
54+
node_modules/.astro/assets
5555
key: static

.github/workflows/publish-production.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/cache/restore@v4
2323
with:
2424
path: |
25-
node_modules/.astro
25+
node_modules/.astro/assets
2626
key: static
2727
- run: npm run build
2828
name: Build
@@ -36,5 +36,5 @@ jobs:
3636
if: always()
3737
with:
3838
path: |
39-
node_modules/.astro
39+
node_modules/.astro/assets
4040
key: static
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Update api-schemas pinned commit
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
check-and-update:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
15+
steps:
16+
- name: Checkout docs repository
17+
uses: actions/checkout@v4
18+
19+
- name: Get latest api-schemas commit
20+
id: get-commit
21+
run: |
22+
LATEST_COMMIT=$(curl -s -H "Accept: application/vnd.github.v3+json" \
23+
https://api.github.com/repos/cloudflare/api-schemas/commits/main | \
24+
jq -r '.sha')
25+
echo "latest_commit=$LATEST_COMMIT" >> $GITHUB_OUTPUT
26+
27+
- name: Check current commit reference
28+
id: check-current
29+
run: |
30+
CURRENT_COMMIT=$(grep 'const COMMIT = ' src/util/api.ts | sed 's/.*"\(.*\)".*/\1/')
31+
echo "current_commit=$CURRENT_COMMIT" >> $GITHUB_OUTPUT
32+
33+
- name: Create PR if needed
34+
if: steps.get-commit.outputs.latest_commit != steps.check-current.outputs.current_commit
35+
run: |
36+
# Set up git config
37+
git config --global user.name 'github-actions[bot]'
38+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
39+
NEW_COMMIT="${{ steps.get-commit.outputs.latest_commit }}"
40+
BRANCH_NAME="update-api-schemas-$NEW_COMMIT"
41+
42+
# Check if PR already exists
43+
EXISTING_PR=$(gh pr list --head "$BRANCH_NAME" --json number --jq '.[0].number')
44+
if [ -n "$EXISTING_PR" ]; then
45+
echo "PR already exists for branch $BRANCH_NAME. Skipping PR creation."
46+
exit 0
47+
fi
48+
49+
# Create a new branch
50+
git checkout -b $BRANCH_NAME
51+
52+
# Update the commit reference
53+
sed -i "s/const COMMIT = \".*\"/const COMMIT = \"$NEW_COMMIT\"/" src/util/api.ts
54+
55+
# Commit and push changes
56+
git add src/util/api.ts
57+
git commit -m "[Docs Site] Update pinned api-schemas commit to $NEW_COMMIT"
58+
git push origin $BRANCH_NAME
59+
60+
# Create pull request
61+
gh pr create \
62+
--title "[Docs Site] Update pinned api-schemas commit" \
63+
--body "This PR updates the api-schemas commit reference to the latest version ($NEW_COMMIT)." \
64+
--base production \
65+
--head $BRANCH_NAME
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)