mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-11-23 19:03:51 +08:00
Update test.
This commit is contained in:
parent
2b6e715526
commit
7cc8adc4b4
25
.github/workflows/test.yml
vendored
25
.github/workflows/test.yml
vendored
@ -23,13 +23,18 @@ jobs:
|
|||||||
echo "${{ steps.branch-name.outputs.base_ref_branch }}"
|
echo "${{ steps.branch-name.outputs.base_ref_branch }}"
|
||||||
echo "${{ steps.branch-name.outputs.head_ref_branch }}"
|
echo "${{ steps.branch-name.outputs.head_ref_branch }}"
|
||||||
echo "${{ steps.branch-name.outputs.ref_branch }}"
|
echo "${{ steps.branch-name.outputs.ref_branch }}"
|
||||||
# - name: Test base ref output
|
- name: Test base ref output
|
||||||
# if: steps.branch-name.outputs.base_ref_branch
|
if: github.event_name == 'pull_request' && !steps.branch-name.outputs.base_ref_branch
|
||||||
# run: |
|
run: |
|
||||||
# exit 1
|
echo "Base ref unset: ${{ steps.branch-name.outputs.base_ref_branch }}"
|
||||||
# - name: Test head ref output
|
exit 1
|
||||||
# run: |
|
- name: Test head ref output
|
||||||
# exit 1
|
if: github.event_name == 'pull_request' && !steps.branch-name.outputs.head_ref_branch
|
||||||
# - name: Test ref output
|
run: |
|
||||||
# run: |
|
echo "Head ref unset: ${{ steps.branch-name.outputs.head_ref_branch }}"
|
||||||
# exit 1
|
exit 1
|
||||||
|
- name: Test ref output
|
||||||
|
if: "!steps.branch-name.outputs.ref_branch"
|
||||||
|
run: |
|
||||||
|
echo "Ref unset: ${{ steps.branch-name.outputs.ref_branch }}"
|
||||||
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user