Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit cf98ee0

Browse files
committed
Added debugging possibility
1 parent ecd20eb commit cf98ee0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

action.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ inputs:
1313
build_cache_paths:
1414
description: Paths of the build cache
1515
required: true
16+
on:
17+
workflow_dispatch:
18+
inputs:
19+
debug_enabled:
20+
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
21+
required: false
22+
default: false
1623
runs:
1724
using: "composite"
1825
steps:
@@ -30,6 +37,9 @@ runs:
3037
curl -0 --silent --output dist-serverless/extensions/sentry-lambda-extension `curl -s https://release-registry.services.sentry.io/apps/sentry-lambda-extension/latest | jq -r .files.\"sentry-lambda-extension\".url`
3138
chmod +x dist-serverless/extensions/sentry-lambda-extension
3239
echo "Done downloading Sentry Lambda extension..."
40+
- name: Setup tmate session
41+
uses: mxschmitt/action-tmate@v3
42+
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
3343
- name: Create Lambda Layer zip
3444
shell: bash
3545
run: |
@@ -42,6 +52,9 @@ runs:
4252
4353
echo "Contents of the created zip file:"
4454
unzip -Z ${{ inputs.zip_file_name }}
55+
- name: Setup tmate session
56+
uses: mxschmitt/action-tmate@v3
57+
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
4558
- name: Upload zip (will be picked up by Craft for deployment)
4659
uses: actions/upload-artifact@v3
4760
with:

0 commit comments

Comments
 (0)