Skip to content

Commit f4bb60f

Browse files
committed
set outputs correctly in build job
1 parent 7f84ecf commit f4bb60f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build_template.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
build:
2020
name: Build Docker Image and Template
2121
runs-on: ubuntu-latest
22+
outputs:
23+
template_id: ${{ steps.build-template.outputs.template_id }}
2224
steps:
2325
- name: Checkout repository
2426
uses: actions/checkout@v4
@@ -50,6 +52,7 @@ jobs:
5052
rm -f e2b.toml
5153
e2b template build --memory-mb 1024 -c "/root/.jupyter/start-up.sh" -d "e2b.Dockerfile" | tee build_output.txt
5254
TEMPLATE_ID=$(grep "Requested build for the sandbox template" build_output.txt | awk '{print $NF}')
55+
echo "Captured Template ID: $TEMPLATE_ID"
5356
echo "template_id=$TEMPLATE_ID" >> $GITHUB_OUTPUT
5457
working-directory: ./template
5558
env:

0 commit comments

Comments
 (0)