GHA workflow_dispatch

Add missing info in workflow_dispatch actions

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
rehangit
1日のインストール数
0
累計インストール数
18
評価
0 0 0
バージョン
0.1.6
作成日
2021/11/19
更新日
2021/11/23
大きさ
3.7KB
ライセンス
不明
対象サイト

GHA workflow_dispatch Decorator

Latest code: https://gist.github.com/rehangit/58409fc3cca4ec7630487ac13a055b27

Github Actions workflow pages with workflow_dispatch are shown without some important info. This script fills the missing info (such as the branch name and git commit hash) for these workflows via github api calls.

Instructions

Github token

First time it is run it will prompt for a github token to make github api calls. Generate a token with atleast repo access.

Cached responses

All github api call responses are cached locally forever as the payload is not likely to change.