Skip to content

Commit

Permalink
Update test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonye Jack committed Dec 11, 2020
1 parent 2b6e715 commit 7cc8adc
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,18 @@ jobs:
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
- name: Test base ref output
if: github.event_name == 'pull_request' && !steps.branch-name.outputs.base_ref_branch
run: |
echo "Base ref unset: ${{ steps.branch-name.outputs.base_ref_branch }}"
exit 1
- name: Test head ref output
if: github.event_name == 'pull_request' && !steps.branch-name.outputs.head_ref_branch
run: |
echo "Head ref unset: ${{ steps.branch-name.outputs.head_ref_branch }}"
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

0 comments on commit 7cc8adc

Please sign in to comment.