Skip to content

Commit 24954ff

Browse files
committed
Use if statement
1 parent d235edc commit 24954ff

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,12 @@ jobs:
180180
- name: Build and push to DockerHub
181181
working-directory: ./template
182182
run: |
183-
CHARTS_VERSION=$(cat ../chart_data_extractor/pyproject.toml | grep version | cut -d '"' -f 2)
184-
VERSION=${{ needs.charts-release.outputs.version || CHARTS_VERSION }}
183+
if [ -z "${{ needs.charts-release.outputs.version }}" ]; then
184+
VERSION=$(cat ../chart_data_extractor/pyproject.toml | grep version | cut -d '"' -f 2)
185+
else
186+
VERSION=${{ needs.charts-release.outputs.version }}
187+
fi
188+
185189
sed -i "s/e2b_charts/e2b_charts==${VERSION}/g" Dockerfile
186190
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/code-interpreter:latest || true
187191
docker buildx build \

0 commit comments

Comments
 (0)