mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-11-23 19:33:52 +08:00
Update README.md
This commit is contained in:
parent
cb56ac598e
commit
3b79f5be45
11
README.md
11
README.md
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user