1

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?

7
  • Can you not use GitHub CLI on that device? Commented Mar 9, 2023 at 15:25
  • Nope, I want to use it with my Fritz!Box and DynDNS. So I need a solution that I am only able to "request" a URL. Currently I have not yet managed that the update URL of the Fritz!Box points to my own network. If I could manage that it would be the ideal solution! Commented Mar 9, 2023 at 15:34
  • I also guess this could be something for the GitHub CLI. Have a look at the workflow run command. There you can also input data via STDIN as JSON. Commented Mar 9, 2023 at 15:36
  • The Fritz!Box is not able to run these commands... Commented Mar 9, 2023 at 15:42
  • 1
    I'm surprised that GitHub has not implemented it. It seems so obvious to have and so easy to use Commented Nov 13, 2024 at 22:57

1 Answer 1

2

I think I am gonna use Cloudflare Workers. It’s exactly what I need.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.