Skip to content

Commit e98d992

Browse files
author
neil
committed
fix shell name
1 parent d498bf6 commit e98d992

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/tpl/test.tpl.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,15 @@ jobs:
551551
[ "$TEST_ENV" = "abc" ]
552552
ssh -v -p 20022 ${VM_USER:-root}@localhost "uname -a;whoami;pwd"
553553
554-
- name: Test custom shell
555-
if: ${{ steps.check.outputs.run == 'true' }}
556-
shell: ${{ matrix.customshell && matrix.customshell || '{{VM_OS_NAME}}' }} {0}
554+
- name: Test custom shell (default)
555+
if: ${{ steps.check.outputs.run == 'true' && !matrix.customshell }}
556+
shell: {{VM_OS_NAME}} {0}
557+
run: |
558+
pwd
559+
{{VM_RUN}}
560+
- name: Test custom shell (custom)
561+
if: ${{ steps.check.outputs.run == 'true' && matrix.customshell }}
562+
shell: ${{ matrix.customshell }} {0}
557563
run: |
558564
pwd
559565
{{VM_RUN}}

0 commit comments

Comments
 (0)