mirror of
https://github.com/zhigang1992/actions.git
synced 2026-01-12 17:12:24 +08:00
Add GITHUB_TOKEN to example code
This commit is contained in:
committed by
GitHub
parent
e45ab7d2b3
commit
28c4b4cc66
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user