A simple and tiny trigger page for Github actions.
-
Generate your own access token. please click the link to get more details.
-
Configure your
config.json
. (ref:config.example.json
)
{
"port": 5000, // the port that service would be hosted
"sessionKeys": ["keys", "keyskeys"], // keys for csrf
"github_actions": {
"token": "your github personal access token",
"repository": {
"owner": "COSCUP",
"workflow_id": "", // workflow filename or id
"branch": "", // branch you want to trigger rebuild
"name": "2021"
}
}
}
- Install dependencies
$ npm i
- Start the service
$ npm run start