mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-11-23 21:03:52 +08:00
Update README.md
This commit is contained in:
parent
3b79f5be45
commit
26b1f6c3ce
23
README.md
23
README.md
@ -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
|
## Inputs
|
||||||
|
|
||||||
| Input | type | required | default |
|
| 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 |
|
| 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