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
325ee91404
commit
c8da2ee9ad
@ -17,12 +17,12 @@ Get branch information without the `/ref/heads` prefix
|
||||
- name: Get Head Ref branch name
|
||||
if: github.event_name == 'pull_request'
|
||||
run: |
|
||||
echo "${{ steps.branch-name.outputs.head_ref_branch }}"
|
||||
echo "${{ steps.branch-name.outputs.head_ref_branch }}" # Outputs: "feature/test"
|
||||
|
||||
- name: Get Base Ref branch name
|
||||
if: github.event_name == 'pull_request'
|
||||
run: |
|
||||
echo "${{ steps.branch-name.outputs.base_ref_branch }}"
|
||||
echo "${{ steps.branch-name.outputs.base_ref_branch }}" # Outputs: "1/merge"
|
||||
```
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user