mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-11-23 20:53:50 +08:00
Update README.md
This commit is contained in:
parent
51386c47f1
commit
6d21079679
@ -12,7 +12,7 @@ Get branch information without the `/ref/*` prefix
|
|||||||
id: branch-names
|
id: branch-names
|
||||||
- name: Get Ref brach name
|
- name: Get Ref brach name
|
||||||
run: |
|
run: |
|
||||||
echo "${{ steps.branch-name.outputs.ref_branch }}" # Outputs: "main" for a non PR branch | "1/merge" for a PR branch
|
echo "${{ steps.branch-name.outputs.ref_branch }}" # Outputs: "main" for non PR branches | "1/merge" for a PR branch
|
||||||
|
|
||||||
- name: Get Head Ref branch name
|
- name: Get Head Ref branch name
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
|
Loading…
Reference in New Issue
Block a user