Skip to content

Commit 330d2dc

Browse files
committed
rewired outputs in build
1 parent 72bd91e commit 330d2dc

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.github/workflows/build_template.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
E2B_DOMAIN:
1212
required: false
1313
type: string
14+
outputs:
15+
template_id:
16+
description: "The ID of the built template"
17+
value: ${{ steps.build-template.outputs.template_id }}
1418

1519
permissions:
1620
contents: read
@@ -56,8 +60,6 @@ jobs:
5660
TEMPLATE_ID=$(grep "Requested build for the sandbox template" build_output.txt | awk '{print $NF}')
5761
echo "Captured Template ID: $TEMPLATE_ID"
5862
echo "template_id=$TEMPLATE_ID" >> $GITHUB_OUTPUT
59-
echo "GITHUB_OUTPUT contents:"
60-
cat $GITHUB_OUTPUT
6163
working-directory: ./template
6264
env:
6365
E2B_ACCESS_TOKEN: ${{ secrets.E2B_ACCESS_TOKEN }}
@@ -66,4 +68,3 @@ jobs:
6668
- name: Output template ID
6769
run: |
6870
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: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ 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
3630
e2b template delete "${{ inputs.E2B_CI_TEMPLATE }}"
3731
env:
3832
E2B_ACCESS_TOKEN: ${{ secrets.E2B_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)