forked from umee-network/umee
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 864 Bytes
/
debug.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Debug
on:
workflow_dispatch:
inputs:
debug_enabled:
description: "Run workflow with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)"
required: false
default: "false"
jobs:
ssh-debug:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Get Go Cache
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache/golangci-lint
~/.cache/go-build
key: ${{ runner.os }}-go-cache-${{ hashFiles('**/go.sum') }}
- uses: actions/checkout@v3
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
timeout-minutes: 90
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}