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
b7e207141f
commit
7b704c18dc
@ -17,7 +17,7 @@ Get branch information without the `/ref/*` prefix
|
||||
if: github.event_name == 'pull_request'
|
||||
run: |
|
||||
echo "${{ steps.branch-name.outputs.current_branch }}"
|
||||
# Outputs: "feature/test" current PR branch.
|
||||
# Outputs: "feature/test" current PR branch or "main" the default branch that triggered the push event.
|
||||
|
||||
- name: Current branch name
|
||||
if: github.event_name == 'push'
|
||||
|
Loading…
x
Reference in New Issue
Block a user