Github Deployments and Repository Dispatch Trigger

Trigger deployment or repository_dispatch event for Github Actions

作者
Te Qi
今日安裝
0
安裝總數
140
評價
1 0 0
版本
0.3
建立日期
2019-12-21
更新日期
2019-12-25
尺寸
5.1 KB
授權條款
未知
腳本執行於

Github Deployments and Repository Dispatch Trigger

A Tampermonkey userscript for triggering Github deployments and repository dispatch event with one click

Screenshot Screenshot Screenshot

Prerequisite

Tampermonkey / Greasemonkey

Usage

  1. Install Tampermonkey or Greasemonkey in your favorite browser.
  2. Install the script from Greasefork (Recommended, as you can receive updates) or by copying.
  3. Get github personal access token with repo permissions. Copy it.
  4. Open the repo you want to trigger deployments or repo dispatch event.

For repository_dispatch event

  1. Click the "Repo Dispatch" button.
  2. At the first time, you will be asked to input your personal access token.
  3. Input your dispatch type (or any name you want. The name can be used to identify the event in Github Actions).
  4. Input your dispatch payload (optional, in json. E.g. {"debug": true}).

For deployments event

  1. Click the "Deploy" button.
  2. At the first time, you will be asked to input your personal access token.
  3. Input the ref for your deploy, it can be branches/tags/commits
  4. Input your task name (or any name you want. The name can be used to identify the event in Github Actions).
  5. Input your dispatch payload (optional, in json. E.g. {"debug": true}).

Documentations