Skip to content

Commit 2540e50

Browse files
committed
Refactor: simplify check_deploy job
1 parent 9c17264 commit 2540e50

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/python-publish.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,9 @@ jobs:
1919
fetch-depth: 0
2020
- id: check_deploy
2121
run: |
22-
bash ./.github/workflows/should_deploy_sqlglotrs.sh || exit_code=$?
23-
if [ $exit_code -eq 0 ]; then
24-
echo "deploy=true" >> $GITHUB_OUTPUT
25-
else
26-
echo "deploy=false" >> $GITHUB_OUTPUT
27-
fi
22+
bash ./.github/workflows/should_deploy_sqlglotrs.sh \
23+
&& echo "deploy=true" >> $GITHUB_OUTPUT \
24+
|| echo "deploy=false" >> $GITHUB_OUTPUT
2825
2926
build-rs:
3027
needs: should-deploy-rs

0 commit comments

Comments
 (0)