File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 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
1519permissions :
1620 contents : read
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 }}
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 }}"
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments