mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-11-23 23:33:50 +08:00
Update test.yml
This commit is contained in:
parent
39b955e7b1
commit
a3164f5259
11
.github/workflows/test.yml
vendored
11
.github/workflows/test.yml
vendored
@ -38,3 +38,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Ref unset: ${{ steps.branch-name.outputs.ref_branch }}"
|
echo "Ref unset: ${{ steps.branch-name.outputs.ref_branch }}"
|
||||||
exit 1
|
exit 1
|
||||||
|
- name: Test current branch output for pull_request event.
|
||||||
|
if: github.event_name == 'pull_request' && !steps.branch-name.outputs.current_branch
|
||||||
|
run: |
|
||||||
|
echo "Current branch unset: ${{ steps.branch-name.outputs.current_branch }}"
|
||||||
|
exit 1
|
||||||
|
- name: Test current branch output for push event.
|
||||||
|
if: github.event_name == 'push' && !steps.branch-name.outputs.current_branch
|
||||||
|
run: |
|
||||||
|
echo "Current branch unset: ${{ steps.branch-name.outputs.current_branch }}"
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user