I have a Cloudflare worker that I would like to use to commit to a GitHub repository automatically. Is this possible? If so, how do I do it?
You could use Wrangler which is made by Cloudflare to deploy your code through the Github Actions.
On Github there is the repository which explains how to do a first setup and to manage your worker.