Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PTFE-2165 set GitHub Actions PATH to tmate env #155

Merged
merged 2 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions .github/workflows/ssh-runner.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
on:
workflow_dispatch: {}
workflow_dispatch:
inputs:
runner:
description: Type of runner
required: false
type: choice
default: ubuntu-latest
options:
- ubuntu-latest
- redhat8
- rocky8
- aws
- gcloud

name: ssh to runner

jobs:
ssh:
name: ssh ${{ matrix.name }}
strategy:
fail-fast: true
matrix:
name:
- ubuntu-latest
- redhat8
- rocky8
- aws
- ['self-hosted', 'ubuntu', 'focal', 'large', 'gcloud']
runs-on: ${{ matrix.name }}
runs-on: ${{ inputs.runner }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions action-ssh-to-runner/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ runs:
echo "set -g tmate-server-port ${{ inputs.tmate-server-port }}" >> ${TMATE_CONF}
echo "set -g tmate-server-rsa-fingerprint ${{ inputs.tmate-server-rsa-fingerprint }}" >> ${TMATE_CONF}
echo "set -g tmate-server-ed25519-fingerprint ${{ inputs.tmate-server-ed25519-fingerprint }}" >> ${TMATE_CONF}
echo "set-environment -g PATH $PATH" >> ${TMATE_CONF}
cat ${TMATE_CONF}
- name: "SSH to runner: Install tmate"
shell: bash
Expand Down
Loading