Skip to content

Commit

Permalink
update sample
Browse files Browse the repository at this point in the history
  • Loading branch information
JarLob committed Jul 8, 2024
1 parent 0966d9b commit 6e357e5
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,24 @@ on:
description: 'When set to non-zero, a step will fail causing the SSH server to be started'
required: true
default: "0"
os:
description: 'OS'
required: true
default: 'macos-latest'
type: choice
options:
- macos-latest
- ubuntu-latest
timeout:
description: 'How long to run (minutes)'
required: false
type: number
default: "10"

jobs:
sample:
name: Sample
runs-on: ubuntu-latest
runs-on: ${{ inputs.os }}
steps:
- uses: actions/checkout@v2

Expand All @@ -24,7 +37,7 @@ jobs:
- name: Start SSH server on failure
if: ${{ failure() }}
timeout-minutes: 10
timeout-minutes: ${{ fromJSON(inputs.timeout) }}
uses: ./
with:
ngrok-authtoken: "${{ secrets.NGROK_AUTHTOKEN }}"
Expand Down

0 comments on commit 6e357e5

Please sign in to comment.