Add GITHUB_TOKEN to example code

This commit is contained in:
Ole Christian Langfjæran
2019-01-10 14:08:19 +01:00
committed by GitHub
parent e45ab7d2b3
commit 28c4b4cc66

View File

@@ -46,6 +46,7 @@ action "Success" {
uses = "docker://byrnedo/alpine-curl"
args = "echo hallois"
runs = "/github/home/bin/deployment-exec-try"
secrets = ["GITHUB_TOKEN"]
needs = ["Add deployscripts"]
}
@@ -53,6 +54,7 @@ action "This one failes and updates Deployment API with error" {
uses = "docker://byrnedo/alpine-curl"
args = "cd this-folder-does-not-exist"
runs = "/github/home/bin/deployment-exec-try"
secrets = ["GITHUB_TOKEN"]
needs = ["Add deployscripts"]
}
```
@@ -71,4 +73,4 @@ _Requires the container to have `curl` installed._
The Dockerfile and associated scripts and documentation in this project are released under the [MIT License](LICENSE.MIT) and [Apache 2](LICENSE.APACHE2).
It uses the excellent [JSON.sh](https://github.com/dominictarr/JSON.sh) for json parsing.
It uses the excellent [JSON.sh](https://github.com/dominictarr/JSON.sh) for json parsing.