diff --git a/.github/workflows/ssh-runner.yaml b/.github/workflows/ssh-runner.yaml index e9e01db..50d5bef 100644 --- a/.github/workflows/ssh-runner.yaml +++ b/.github/workflows/ssh-runner.yaml @@ -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 diff --git a/action-ssh-to-runner/action.yaml b/action-ssh-to-runner/action.yaml index a41e067..c99b16e 100644 --- a/action-ssh-to-runner/action.yaml +++ b/action-ssh-to-runner/action.yaml @@ -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