Skip to content

Commit 29d10b6

Browse files
committed
updated workflow
1 parent 7673c9f commit 29d10b6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build_test_template.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,18 @@ jobs:
4646
working-directory: ./template
4747
run: pip install -r requirements-dev.txt
4848

49+
- name: Generate Template ID
50+
id: generate-template-id
51+
run: |
52+
E2B_TESTS_TEMPLATE=$(uuidgen)
53+
echo "template_id=$E2B_TESTS_TEMPLATE" >> $GITHUB_OUTPUT
54+
4955
- name: Build E2B template
5056
id: build-template
5157
working-directory: ./template
5258
run: |
53-
TEMPLATE_ID=$(uuidgen)
54-
echo "Building template with Template ID: $TEMPLATE_ID"
5559
python build_ci.py
56-
echo "template_id=$TEMPLATE_ID" >> $GITHUB_OUTPUT
5760
env:
5861
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
5962
E2B_DOMAIN: ${{ inputs.E2B_DOMAIN }}
63+
E2B_TESTS_TEMPLATE: ${{ steps.generate-template-id.outputs.template_id }}

0 commit comments

Comments
 (0)