Update README.md

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

View File

@ -44,6 +44,17 @@ Get branch information without the `/ref/*` prefix
| ref_branch | `string` | `1/merge` | The branch that triggered the workflow run | | 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) * Free software: [MIT license](LICENSE)