Skip to content

tom555my/simple-github-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: MIT

Simple Github Webhook

This project is aimed at to create simple github webhook server for quick and dirty CI/CD integration.

Tech stack

Usage

  1. Edit config json
{
  [repo name]: {
    [branch name]: {
      "cwd": "<where should the program run>",
      "cmd": [
        // List of string of command
      ]
    }
  }
}

// For example
{
  "simple-github-webhook": {
    "main": {
      "cwd": "/home/tom555my/repo/simple-github-webhook",
      "cmd": [
        "git checkout main",
        "git pull origin main",
        "yarn",
        "yarn build",
        "yarn start"
      ]
    }
  }
}
  1. Start the server

yarn start

  1. Config your github repo webhook

https://github.com/%username%/%your-repo%/settings/hooks

License

MIT

Copyright (c) 2020-present, Chung Kwok Cheong

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages