A Cloudflare Worker that resolves a reference (a branch or tag name) of a GitHub repository to the SHA-1 of the corresponding commit.
curl "https://gh-resolve-ref.<CF User>.workers.dev?owner=<gh owner/org>&repo=<gh repo>&ref=<branch/tag name>"
e.g.
curl "https://gh-resolve-ref.rockerduck.workers.dev?owner=adobe&repo=helix-fetch&ref=main"
- Make sure the environment variables
CF_ACCOUNT_ID
andCF_API_TOKEN
are set. - Run
wrangler publish