Is it possible to trigger a GitHub action with just a URL and query the url parameters in the action?
I know that I can send an HTTP request to the GitHub API and trigger the repository_dispatch event, but this is not possible in my case because the device is not able to send an HTTP request. It can only "request" a URL and send the parameters in the URL. In the action I want to process the parameters and send a HTTP request to another endpoint. So I want to take the action only as an "in-between" point.
As an example I have this URL (which I made up for demonstration purposes):
https://github.com/<user>/<repo>/blob/master/.github/workflows/test_action?param=hello
Now I want to use the action to "listen" if a URL request arrives with certain parameters.
So is it possible to trigger a specific action in my repository with just a URL and use the parameters of the URL (in this case param=hello
) in the action?
I think I am gonna use Cloudflare Workers. It’s exactly what I need.