-
Notifications
You must be signed in to change notification settings - Fork 7
31 lines (27 loc) · 747 Bytes
/
sample.yml
File metadata and controls
31 lines (27 loc) · 747 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
name: Sample SSH server workflow
on:
workflow_dispatch:
inputs:
sshPublicKey:
description: 'SSH public key'
required: true
exitCode:
description: 'When set to non-zero, a step will fail causing the SSH server to be started'
required: true
default: "0"
jobs:
sample:
name: Sample
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Exit code
run: |
exit "${{ github.event.inputs.exitCode }}"
- name: Start SSH server on failure
if: ${{ failure() }}
timeout-minutes: 10
uses: ./
with:
ngrok-authtoken: "${{ secrets.NGROK_AUTHTOKEN }}"
ssh-public-key: "${{ github.event.inputs.sshPublicKey }}"