Web file cache service based on GitHub actions
- Crawler:
web-fetch(Puppeteer based) - CDN: JSDelivr
- OSS service: Cloudflare R2
-
Install GitHub apps in your organization or account:
- Probot settings: set up Issue labels & Pull Request rules
-
Click the Use this template button on the top of this GitHub repository's home page, then create your own repository in the app-installed namespace above
-
Set Cloudflare variables is
.github/workflows/crawler.ymlas Repository secrets
https://github.com/idea2app/Web-file-cache/issues/new?template=crawler.yml
URL="https://example.com/test.html"
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "X-GitHub-Api-Version: 2022-11-28" \
-d "{\"ref\":\"main\",\"inputs\":{\"url\":\"$URL\"}}" \
https://api.github.com/repos/your-namespace/Web-file-cache/actions/workflows/crawler.yml/dispatches