GitHub Actions SSH Debug

GitHub Actions のstepの合間にデバッグしたい箇所(sshログインしてイジイジしたい箇所)で下記のstepを挟み込めば OK.

    - name: Debug
      if: ${{ always() }}
      uses: mxschmitt/action-tmate@v3

GitHub Actions で SSH デバッグ! (debugging-with-tmate)

GitHub Actions で OS で分岐

runner.osif 分岐すれば OK.

    - name: Linux
      if: runner.os == 'Linux'
      run: echo linux