Skip to content

Debug with action-tmate #3

Debug with action-tmate

Debug with action-tmate #3

---
name: Debug with action-tmate
on:
workflow_dispatch:
inputs:
runs-on:
required: false
default: windows-latest
pr_number:
required: false
ref:
required: false
permissions: {}
jobs:
action-tmate:
runs-on: ${{inputs.runs-on}}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{inputs.ref}}
- run: gh pr checkout "${{inputs.pr_number}}"
if: inputs.pr_number != ''
env:
GITHUB_TOKEN: ${{github.token}}
- uses: aquaproj/aqua-installer@6ce1f8848ec8e61f14d57bd5d7597057a6dd187c # v3.0.1
with:
aqua_version: v2.29.0
policy_allow: "true"
env:
AQUA_GITHUB_TOKEN: ${{github.token}}
# The default vim doesn't work well, so we install the latest vim ourselves.
- uses: rhysd/action-setup-vim@2ab97f992520b094d4243cde0d3173493c811799 # v1.3.4
- uses: mxschmitt/action-tmate@1005f9c9db5f1b055a495e72c6e589764984baf6 # v3.14
with:
limit-access-to-actor: true # SSH Key is required
env:
GITHUB_TOKEN: ${{github.token}} # Pass GitHub Token to shell session