Skip to content

Commit 7129f9d

Browse files
committed
debug cleanup CI
1 parent fb40236 commit 7129f9d

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.github/workflows/build_template.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,14 @@ jobs:
5656
TEMPLATE_ID=$(grep "Requested build for the sandbox template" build_output.txt | awk '{print $NF}')
5757
echo "Captured Template ID: $TEMPLATE_ID"
5858
echo "template_id=$TEMPLATE_ID" >> $GITHUB_OUTPUT
59+
echo "GITHUB_OUTPUT contents:"
60+
cat $GITHUB_OUTPUT
5961
working-directory: ./template
6062
env:
6163
E2B_ACCESS_TOKEN: ${{ secrets.E2B_ACCESS_TOKEN }}
6264
E2B_DOMAIN: ${{ inputs.E2B_DOMAIN }}
6365

6466
- name: Output template ID
6567
run: |
66-
echo "Template ID: ${{ steps.build-template.outputs.template_id }}"
68+
echo "Template ID from step output: ${{ steps.build-template.outputs.template_id }}"
69+
echo "Template ID from job output: ${{ needs.build.outputs.template_id }}"

.github/workflows/cleanup_build_template.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ jobs:
2727
- name: Cleanup E2B template
2828
id: cleanup-template
2929
run: |
30+
echo "Raw input value: ${{ inputs.E2B_CI_TEMPLATE }}"
31+
echo "Template ID to delete: '${{ inputs.E2B_CI_TEMPLATE }}'"
32+
if [ -z "${{ inputs.E2B_CI_TEMPLATE }}" ]; then
33+
echo "Error: Template ID is empty"
34+
exit 1
35+
fi
3036
e2b template delete "${{ inputs.E2B_CI_TEMPLATE }}"
3137
env:
3238
E2B_ACCESS_TOKEN: ${{ secrets.E2B_ACCESS_TOKEN }}

.github/workflows/pull_request.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,7 @@ jobs:
4848
with:
4949
E2B_DOMAIN: ${{ vars.E2B_DOMAIN }}
5050
E2B_CI_TEMPLATE: ${{ needs.build-template.outputs.template_id }}
51+
env:
52+
DEBUG: "true"
5153
charts-tests:
5254
uses: ./.github/workflows/charts_tests.yml

0 commit comments

Comments
 (0)