mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-11-23 18:43:51 +08:00
Update README.md
This commit is contained in:
parent
8f5a2419fb
commit
83b3f1a655
@ -29,13 +29,13 @@ Get branch information without the `/ref/*` prefix
|
|||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
run: |
|
run: |
|
||||||
echo "${{ steps.branch-name.outputs.current_branch }}"
|
echo "${{ steps.branch-name.outputs.current_branch }}"
|
||||||
# Outputs: "feature/test" current PR branch or "main" the default branch that triggered the push event.
|
# Outputs: "feature/test" current PR branch.
|
||||||
|
|
||||||
- name: Current branch name
|
- name: Current branch name
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
run: |
|
run: |
|
||||||
echo "${{ steps.branch-name.outputs.current_branch }}"
|
echo "${{ steps.branch-name.outputs.current_branch }}"
|
||||||
# Outputs: "main" the current branch that triggered the action.
|
# Outputs: "main" the default branch that triggered the push event.
|
||||||
|
|
||||||
- name: Get Ref brach name
|
- name: Get Ref brach name
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user