Skip to content

Commit

Permalink
Allow enabling ssh server for GitHub Actions CI builds
Browse files Browse the repository at this point in the history
Allow enabling tmate when launching the workflow manually using
workflow_dispatch trigger.
  • Loading branch information
vadz committed Oct 16, 2024
1 parent ca77f3c commit 6438cff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ on:
- .cirrus.yml
- .github/workflows/codeql.yml
- appveyor.yml
workflow_dispatch:
inputs:
enable_ssh:
type: boolean
description: 'Enable ssh server before running the job'
required: false
default: false

jobs:
build:
Expand Down Expand Up @@ -107,6 +114,7 @@ jobs:
- name: Setup tmate
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.enable_ssh }}

- name: Install dependencies
run: ./scripts/ci/install.sh
Expand Down

0 comments on commit 6438cff

Please sign in to comment.