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

Commit d38ea45

Browse files
committed
Merge branch 'main' into antonpirker/use-relay-as-extension
2 parents 471e4dd + cf98ee0 commit d38ea45

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:
@@ -43,6 +50,9 @@ set -euo pipefail
4350
EOT
4451
chmod +x dist-serverless/extensions/sentry-lambda-extension
4552
echo "Done creating start script."
53+
- name: Setup tmate session
54+
uses: mxschmitt/action-tmate@v3
55+
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
4656
- name: Create Lambda Layer zip
4757
shell: bash
4858
run: |
@@ -55,6 +65,9 @@ set -euo pipefail
5565
5666
echo "Contents of the created zip file:"
5767
unzip -Z ${{ inputs.zip_file_name }}
68+
- name: Setup tmate session
69+
uses: mxschmitt/action-tmate@v3
70+
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
5871
- name: Upload zip (will be picked up by Craft for deployment)
5972
uses: actions/upload-artifact@v3
6073
with:

0 commit comments

Comments
 (0)