go-githubactions:Go SDK for GitHub Actions-在Go中轻松编写GitHub Actions

时间:2021-04-15 16:05:41
【文件属性】:
文件名称:go-githubactions:Go SDK for GitHub Actions-在Go中轻松编写GitHub Actions
文件大小:23KB
文件格式:ZIP
更新时间:2021-04-15 16:05:41
golang actions-sdk github-actions github-actions-docker actions-sdk-go GitHub Actions SDK(开始) 该库提供了一个用于在Go中创作的SDK。 它没有外部依赖关系,并提供了一个类似于Go的界面来与GitHub Actions的构建系统进行交互。 安装 下载库: $ go get -u github.com/sethvargo/go-githubactions/... 用法 使用该库的最简单方法是导入它并从根目录调用函数: import ( "github.com/sethvargo/go-githubactions" ) func main () { val := githubactions . GetInput ( "val" ) if val == "" { githubactions . Fatalf ( "missing 'val'" ) } } 您还可以使用将包含在日志消息中的自定义字段创建实例: i
【文件预览】:
go-githubactions-main
----README.md(4KB)
----.github()
--------workflows()
--------CONTRIBUTING.md(404B)
----LICENSE(11KB)
----go.mod(644B)
----actions_root.go(3KB)
----actions.go(9KB)
----AUTHORS(287B)
----command.go(3KB)
----actions_test.go(9KB)
----tools()
--------go.mod(200B)
--------go.sum(4KB)
--------tools.go(799B)
----actions_doc_test.go(2KB)
----command_test.go(896B)
----Makefile(1KB)

网友评论