Skip to content

Commit a604958

Browse files
committed
changed template id extraction logic
1 parent bf5f38e commit a604958

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build_template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
run: |
5555
rm -f e2b.toml && e2b template build --team "460355b3-4f64-48f9-9a16-4442817f79f5" --memory-mb 1024 -c "/root/.jupyter/start-up.sh" -d "e2b.Dockerfile" | tee build_output.txt
5656
echo "build_output=$(cat build_output.txt)" >> $GITHUB_OUTPUT
57-
TEMPLATE_ID=$(cat build_output.txt | grep -o 'Requested build for the sandbox template [a-z0-9]*' | cut -d' ' -f6)
57+
TEMPLATE_ID=$(grep "Requested build for the sandbox template" build_output.txt | awk '{print $NF}')
5858
echo "template_id=$TEMPLATE_ID" >> $GITHUB_OUTPUT
5959
working-directory: ./template
6060
env:

0 commit comments

Comments
 (0)