Update README.md

This commit is contained in:
Tonye Jack 2020-12-11 12:42:26 -05:00 committed by GitHub
parent 3b79f5be45
commit 26b1f6c3ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,18 @@ Get branch information without the `/ref/*` prefix
```
### Possible usage with [actions/checkout@v2](https://github.com/actions/checkout):
```yaml
- name: Get branch names.
id: branch-names
uses: tj-actions/branch-names@v1
- uses: actions/checkout@v2
with:
ref: ${{ steps.branch-names.outputs.base_ref_branch }}
```
## Inputs
| Input | type | required | default |
@ -44,17 +56,6 @@ Get branch information without the `/ref/*` prefix
| ref_branch | `string` | `1/merge` | The branch that triggered the workflow run |
Possible usage with [actions/checkout@v2](https://github.com/actions/checkout):
```yaml
- name: Get branch names.
id: branch-names
uses: tj-actions/branch-names@v1
- uses: actions/checkout@v2
with:
ref: ${{ steps.branch-names.outputs.base_ref_branch }}
```
* Free software: [MIT license](LICENSE)