mirror of
https://github.com/tj-actions/branch-names.git
synced 2024-11-23 22:33:50 +08:00
Added test for current_branch on release actions
This commit is contained in:
parent
674ea6ee5e
commit
032d60a537
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@ -63,6 +63,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Current branch unset: ${{ steps.branch-name.outputs.current_branch }}"
|
echo "Current branch unset: ${{ steps.branch-name.outputs.current_branch }}"
|
||||||
exit 1
|
exit 1
|
||||||
|
- name: Test current branch output for tag based push event.
|
||||||
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && !steps.branch-name.outputs.current_branch
|
||||||
|
run: |
|
||||||
|
echo "Current branch unset: ${{ steps.branch-name.outputs.current_branch }}"
|
||||||
|
exit 1
|
||||||
- name: Test current tag for push events.
|
- name: Test current tag for push events.
|
||||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && !steps.branch-name.outputs.tag
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && !steps.branch-name.outputs.tag
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user