In github you can trigger a workflow run via the Web UI:
The problem is that these values are free text fields. This can ofc have great negative impact if someone enters wrong values.
The high level view:
- Create an API that basically just triggers the workflow via Github's API
- Create an web frontend that uses this API and provides a convenient user experience for triggering
Create a personal GITHUB token.
It needs the repo permissions.
Set the env variable GITHUB_TOKEN
with the generated token.
# go install
# GITHUB_TOKEN=<my token> go run api.go
You should now be able to reach the API via localhost:8080