forked from garygrossgarten/github-action-ssh
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 851 Bytes
/
ssh-example-test.yml
File metadata and controls
37 lines (34 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Test latest commit
on:
push:
branches: ['master']
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: ls -a via OPEN SSH Private Key
uses: ./
with:
command: ls -a
host: ${{ secrets.HOST }}
username: garydev
privateKey: ${{ secrets.PRIVATE_KEY}}
- name: User/Pw
uses: ./
with:
command: ls -a
host: ${{ secrets.HOST }}
username: garydev
password: ${{ secrets.PASSPHRASE }}
- name: This step should fail
uses: ./
with:
command: sh throw_error.sh
host: ${{ secrets.HOST }}
username: garydev
privateKey: ${{ secrets.PRIVATE_KEY}}
env:
CI: true