Skip to content

Commit cde5d24

Browse files
committed
Add private_key input check
1 parent c76e327 commit cde5d24

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ runs:
1616
run: |
1717
echo "::error title=⛔ error hint::Support Linux and macOS Only"
1818
exit 1
19+
- name: Check SSH key
20+
if: ${{ inputs.private_key == '' }}
21+
shell: bash
22+
run: |
23+
echo "::error title=⛔ error hint::Private key cannot be empty"
24+
exit 1
1925
- name: Start SSH agent with a key
2026
shell: bash
2127
env:

0 commit comments

Comments
 (0)