-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This workflow prints some diagnostic information and then starts a tmate session for debugging. It can only be triggered manually.
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |