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
71ea4d1bd6
commit
12ee3351aa
@ -13,19 +13,19 @@ Get branch information without the `/ref/*` prefix
|
||||
- name: Get Ref brach name
|
||||
run: |
|
||||
echo "${{ steps.branch-name.outputs.ref_branch }}"
|
||||
# Outputs: "main" for non PR branches | "1/merge" for a PR branch
|
||||
# Outputs: "main" for non PR branches | "1/merge" for a PR branch
|
||||
|
||||
- name: Get Head Ref branch name
|
||||
if: github.event_name == 'pull_request'
|
||||
run: |
|
||||
echo "${{ steps.branch-name.outputs.head_ref_branch }}"
|
||||
# Outputs: "feature/test" current PR branch.
|
||||
# Outputs: "feature/test" current PR branch.
|
||||
|
||||
- name: Get Base Ref branch name
|
||||
if: github.event_name == 'pull_request'
|
||||
run: |
|
||||
echo "${{ steps.branch-name.outputs.base_ref_branch }}"
|
||||
# Outputs: "main" for main <- PR branch.
|
||||
# Outputs: "main" for main <- PR branch.
|
||||
```
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user