Skip to content

Commit

Permalink
ci: add debug workflow (#154)
Browse files Browse the repository at this point in the history
This workflow prints some diagnostic information and then starts a tmate
session for debugging. It can only be triggered manually.
  • Loading branch information
gcurtis authored Sep 20, 2022
1 parent dfca944 commit 320c175
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/debug.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 320c175

Please sign in to comment.