From 320c1754f8512ac23b49a40de5a2a5d9af385c6f Mon Sep 17 00:00:00 2001 From: Greg Curtis Date: Tue, 20 Sep 2022 15:25:45 -0400 Subject: [PATCH] ci: add debug workflow (#154) This workflow prints some diagnostic information and then starts a tmate session for debugging. It can only be triggered manually. --- .github/workflows/debug.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/debug.yaml diff --git a/.github/workflows/debug.yaml b/.github/workflows/debug.yaml new file mode 100644 index 00000000000..4501112ed99 --- /dev/null +++ b/.github/workflows/debug.yaml @@ -0,0 +1,32 @@ +name: debug +on: + workflow_dispatch: + inputs: + runner: + description: "Runner type to debug on" + required: true + default: "ubuntu-latest" + type: choice + options: + - macos-12 + - ubuntu-latest +permissions: + contents: read +jobs: + golangci-lint: + runs-on: ${{ inputs.runner }} + steps: + - name: Get rate limits + run: | + curl \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: ${{ github.token }}" \ + https://api.github.com/rate_limit | jq . + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version-file: ./go.mod + - uses: mxschmitt/action-tmate@v3 + with: + args: --timeout=10m + limit-access-to-actor: true