Update test.yml

This commit is contained in:
Tonye Jack 2021-02-07 19:34:33 -05:00 committed by GitHub
parent 39b955e7b1
commit a3164f5259
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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