mirror of https://github.com/actions/toolkit
Error in yaml (#158)
The word `you're` in the yaml example made the parsing fail, which baffled me for a while. One fix is to use `"` quotes.pull/866/head
parent
4897b2cd3b
commit
547d771ca3
|
@ -21,19 +21,19 @@ All of the dependencies we need should come packaged for us in this library's co
|
||||||
Next, we will need a welcome message and a repo token as an input. Recall that inputs are defined in the `action.yml` metadata file - update your `action.yml` file to define `welcome-message` and `repo-token` as inputs.
|
Next, we will need a welcome message and a repo token as an input. Recall that inputs are defined in the `action.yml` metadata file - update your `action.yml` file to define `welcome-message` and `repo-token` as inputs.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: 'Welcome'
|
name: "Welcome"
|
||||||
description: 'A basic welcome action'
|
description: "A basic welcome action"
|
||||||
author: 'GitHub'
|
author: "GitHub"
|
||||||
inputs:
|
inputs:
|
||||||
welcome-message:
|
welcome-message:
|
||||||
description: 'Message to display when a user opens an issue or PR'
|
description: "Message to display when a user opens an issue or PR"
|
||||||
default: 'Thanks for opening an issue! Make sure you've followed CONTRIBUTING.md'
|
default: "Thanks for opening an issue! Make sure you've followed CONTRIBUTING.md"
|
||||||
repo-token:
|
repo-token:
|
||||||
description: 'Token for the repo. Can be passed in using {{ secrets.GITHUB_TOKEN }}'
|
description: "Token for the repo. Can be passed in using {{ secrets.GITHUB_TOKEN }}"
|
||||||
required: true
|
required: true
|
||||||
runs:
|
runs:
|
||||||
using: 'node12'
|
using: "node12"
|
||||||
main: 'lib/main.js'
|
main: "lib/main.js"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Action logic
|
## Action logic
|
||||||
|
|
Loading…
Reference in New Issue