Skip to content

bt66/go-green

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Auto commit bot.

this repo is used for auto commit and push to repository

go-green auto commit using github action to automatically commit and push

i use cronjob and repository_dispatch to trigger action periodly, repository_dispatch make possibility to trigger action by rest api requests

repository_dispatch is optional, i used it because github schedule with cron not always run cron on time

this is example of rest api request if you use repository_dispatch to trigger github action

curl -H "Accept: application/vnd.github.everest-preview+json" \
    -H "Authorization: token <replace this with github token>" \
    --request POST \
    --data '{"event_type": "start-action"}' \
    https://api.github.com/repos/<your github username>/<your github repository name>/dispatches

so if i need to trigger this github action in this repository, the request will look like bellow :

curl -H "Accept: application/vnd.github.everest-preview+json" \
    -H "Authorization: token <replace this with github token>" \
    --request POST \
    --data '{"event_type": "start-action"}' \
    https://api.github.com/repos/bt66/go-green/dispatches

Releases

No releases published

Packages

No packages published

Languages