mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-12-27 14:27:59 +08:00
Update test.
This commit is contained in:
parent
c5308c6d98
commit
298b831650
18
.github/workflows/test.yml
vendored
18
.github/workflows/test.yml
vendored
@ -17,3 +17,21 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: shellcheck
|
- name: shellcheck
|
||||||
uses: reviewdog/action-shellcheck@v1
|
uses: reviewdog/action-shellcheck@v1
|
||||||
|
- name: Run test
|
||||||
|
id: branch-name
|
||||||
|
uses: ./
|
||||||
|
- name: Show output
|
||||||
|
run:
|
||||||
|
echo "${{ steps.branch-name.outputs.base_ref_branch }}"
|
||||||
|
echo "${{ steps.branch-name.outputs.head_ref_branch }}"
|
||||||
|
echo "${{ steps.branch-name.outputs.ref_branch }}"
|
||||||
|
# - name: Test base ref output
|
||||||
|
# if: steps.branch-name.outputs.base_ref_branch
|
||||||
|
# run: |
|
||||||
|
# exit 1
|
||||||
|
# - name: Test head ref output
|
||||||
|
# run: |
|
||||||
|
# exit 1
|
||||||
|
# - name: Test ref output
|
||||||
|
# run: |
|
||||||
|
# exit 1
|
||||||
|
@ -9,6 +9,11 @@ Retrieve giithub branch information without any prefix
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Get branch name
|
- name: Get branch name
|
||||||
uses: tj-actions/branch-name@v1
|
uses: tj-actions/branch-name@v1
|
||||||
|
- name: Get brach Names
|
||||||
|
run: |
|
||||||
|
echo "${{ steps.branch-name.outputs.base_ref_branch }}"
|
||||||
|
echo "${{ steps.branch-name.outputs.head_ref_branch }}"
|
||||||
|
echo "${{ steps.branch-name.outputs.ref_branch }}"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user