-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
30 lines (28 loc) · 953 Bytes
/
action.yml
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
name: Debug your Workflows
description: |
This action helps you debug your workflows by running an SSH server,
accessible through temporary cloudflare tunnels, and restricted to your user
-- the SSH keys registered for the user that started the workflow at GitHub.
author: Emmanuell Frecon <[email protected]>
branding:
icon: terminal
color: red
inputs:
user:
description: |
The GitHub user to allow access to the SSH server. By default, this will
be the user that triggered the workflow.
required: false
default: ${{ github.actor }}
runs:
using: composite
steps:
- name: SSHd
id: debug
shell: bash
env:
CF_SSHD_BRANCH: ${{ github.action_ref }}
CF_SSHD_USERNAME: ${{ inputs.user }}
run: |
curl -sSL "https://github.com/efrecon/sshd-cloudflared/raw/${CF_SSHD_BRANCH:-main}/install.sh" |
sh -s -- -r -i "entrypoint.sh" -- -g "$CF_SSHD_USERNAME"