Skip to content

🐛 fix(docs): resolve code indentation error due to a wrong push t… #66

🐛 fix(docs): resolve code indentation error due to a wrong push t…

🐛 fix(docs): resolve code indentation error due to a wrong push t… #66

Workflow file for this run

name: Sync website & deploy
on:
push:
branches: [main]
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout website repo
uses: actions/checkout@v6
with:
repository: ${{ secrets.WEBSITE_REPO }}
token: ${{ secrets.CROSS_REPO_TOKEN }}
submodules: true
fetch-depth: 0
- name: Update content submodule to latest
run: |
git submodule update --init --remote --recursive
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add content
git diff --cached --quiet || git commit -m "chore(content): sync docs submodule [skip ci]"
git push
- name: Purge Cloudflare cache
run: |
echo "Token length: ${#CF_TOKEN}"
echo "Verifying token..."
curl -s "https://api.cloudflare.com/client/v4/user/tokens/verify" \
-H "Authorization: Bearer $CF_TOKEN"
echo ""
echo "Purging cache..."
curl -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CF_ZONE_ID }}/purge_cache" \
-H "Authorization: Bearer $CF_TOKEN" \
-H "Content-Type: application/json" \
--data '{"purge_everything":true}'
env:
CF_TOKEN: ${{ secrets.CF_API_TOKEN }}