docs: add repository input default

This commit is contained in:
Peter Evans 2020-09-25 14:42:31 +09:00
parent 68960cdd4c
commit 9db4dd4244
2 changed files with 9 additions and 6 deletions

View file

@ -23,11 +23,11 @@ This is useful if you `docker push` your images to Docker Hub. It provides an ea
| Name | Description | Default |
| --- | --- | --- |
| `username` | (**required**) Docker Hub username. If updating a Docker Hub repository belonging to an organization, this user must have `Admin` permissions for the repository. | |
| `password` | (**required**) Docker Hub password | |
| `repository` | (**required**) Docker Hub repository in the format `<namespace>/<name>` | |
| `password` | (**required**) Docker Hub password. | |
| `repository` | Docker Hub repository in the format `<namespace>/<name>`. | `github.repository` |
| `readme-filepath` | Path to the repository readme. | `./README.md` |
#### Optionally specifying the file path
#### Specifying the file path
The action assumes that there is a file called `README.md` located at the root of the repository.
If this is not the case the path can be specified with the `readme-filepath` input.

View file

@ -9,10 +9,13 @@ inputs:
description: Docker Hub password
required: true
repository:
description: Docker Hub repository in the format `<namespace>/<name>`
required: true
description: >
Docker Hub repository in the format `<namespace>/<name>`
Default: `github.repository`
readme-filepath:
description: Path to the repository readme. Defaults to `./README.md`.
description: >
Path to the repository readme
Default: `./README.md`
runs:
using: 'node12'
main: 'dist/index.js'