mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-12-27 14:27:59 +08:00
Update README.md
This commit is contained in:
parent
985406edb0
commit
3e0215fc2d
@ -31,7 +31,7 @@ Get branch or tag information without the `/ref/*` prefix
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Get branch names
|
- name: Get branch names
|
||||||
id: branch-name
|
id: branch-name
|
||||||
uses: tj-actions/branch-names@v3.4
|
uses: tj-actions/branch-names@v3.5
|
||||||
```
|
```
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
@ -42,7 +42,7 @@ Get branch or tag information without the `/ref/*` prefix
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Get branch names
|
- name: Get branch names
|
||||||
id: branch-name
|
id: branch-name
|
||||||
uses: tj-actions/branch-names@v3.4
|
uses: tj-actions/branch-names@v3.5
|
||||||
|
|
||||||
- name: Running on the default branch.
|
- name: Running on the default branch.
|
||||||
if: steps.branch-name.outputs.is_default == 'true'
|
if: steps.branch-name.outputs.is_default == 'true'
|
||||||
@ -107,7 +107,7 @@ on:
|
|||||||
steps:
|
steps:
|
||||||
- name: Get branch names.
|
- name: Get branch names.
|
||||||
id: branch-names
|
id: branch-names
|
||||||
uses: tj-actions/branch-names@v3.4
|
uses: tj-actions/branch-names@v3.5
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: ${{ steps.branch-names.outputs.base_ref_branch }}
|
ref: ${{ steps.branch-names.outputs.base_ref_branch }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user