Skip to content

Commit adc9678

Browse files
committed
grep template from e2b.toml after the build has been completed
1 parent a0705d2 commit adc9678

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build_test_template.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ jobs:
5656
run: |
5757
rm -f e2b.toml
5858
echo "FROM e2bdev/code-interpreter-test:latest" > test.Dockerfile
59-
e2b template build --memory-mb 1024 -c "/root/.jupyter/start-up.sh" -d "test.Dockerfile" | tee build_output.txt
60-
TEMPLATE_ID=$(grep "Requested build for the sandbox template" build_output.txt | awk '{print $NF}')
59+
e2b template build --memory-mb 1024 -c "/root/.jupyter/start-up.sh" -d "test.Dockerfile"
60+
TEMPLATE_ID=$(grep "template_id" e2b.toml | cut -d '"' -f 2)
6161
echo "Captured Template ID: $TEMPLATE_ID"
6262
echo "template_id=$TEMPLATE_ID" >> $GITHUB_OUTPUT
6363
working-directory: ./template

0 commit comments

Comments
 (0)