forked from commercialhaskell/stack
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (28 loc) · 924 Bytes
/
tmate.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
# See https://github.com/commercialhaskell/stack/issues/6252#issuecomment-1732106343
# See https://github.com/mxschmitt/action-tmate
name: tmate
on:
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false
jobs:
debug:
runs-on: ubuntu-latest
steps:
- name: Sign assets
shell: bash
env:
RELEASE_SIGNING_KEY: ${{ secrets.RELEASE_SIGNING_KEY }}
run: |
echo "$RELEASE_SIGNING_KEY"|gpg --import
# Enable tmate debugging of manually-triggered workflows if the input
# option was provided
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
with:
limit-access-to-actor: true