add usage examples to README
This commit is contained in:
28
README.md
28
README.md
@@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
Fetches and creates versioned GitHub resources.
|
Fetches and creates versioned GitHub resources.
|
||||||
|
|
||||||
|
> If you're seeing rate limits affecting you then please add a token to the source
|
||||||
|
> configuration. This will increase your number of allowed requests.
|
||||||
|
|
||||||
## Source Configuration
|
## Source Configuration
|
||||||
|
|
||||||
* `user`: *Required.* The GitHub username or organization name for the
|
* `user`: *Required.* The GitHub username or organization name for the
|
||||||
@@ -15,6 +18,31 @@ Fetches and creates versioned GitHub resources.
|
|||||||
* `github_api_url`: *Optional.* If you use a non-public GitHub deployment then
|
* `github_api_url`: *Optional.* If you use a non-public GitHub deployment then
|
||||||
you can set your API URL here.
|
you can set your API URL here.
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
``` yaml
|
||||||
|
- name: gh-release
|
||||||
|
type: github-release
|
||||||
|
source:
|
||||||
|
user: concourse
|
||||||
|
repository: concourse
|
||||||
|
access_token: abcdef1234567890
|
||||||
|
```
|
||||||
|
|
||||||
|
``` yaml
|
||||||
|
- get: gh-release
|
||||||
|
```
|
||||||
|
|
||||||
|
``` yaml
|
||||||
|
- put: gh-release
|
||||||
|
params:
|
||||||
|
name: path/to/name/file
|
||||||
|
tag: path/to/tag/file
|
||||||
|
body: path/to/body/file
|
||||||
|
globs:
|
||||||
|
- paths/to/files/to/upload-*.tgz
|
||||||
|
```
|
||||||
|
|
||||||
## Behavior
|
## Behavior
|
||||||
|
|
||||||
### `check`: Check for released versions.
|
### `check`: Check for released versions.
|
||||||
|
Reference in New Issue
Block a user