Update Publish Toolkit Workflow (#303)

This commit is contained in:
Eric Gustin 2025-03-17 15:10:08 -08:00 committed by GitHub
parent e048f277fd
commit 5afd31ba27
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,7 +62,7 @@ jobs:
# Attempt to publish the toolkit to PyPI.
# If the toolkit version already exists, skip publishing.
# If another error occurs, exit with the error code so that the step fails.
PUBLISH_OUTPUT=$(poetry publish --skip-existing 2>&1)
PUBLISH_OUTPUT=$(poetry publish --skip-existing 2>&1 || true)
PUBLISH_STATUS=$?
if echo "$PUBLISH_OUTPUT" | grep -q "File exists. Skipping"; then
echo "Version already exists on PyPI. Skipping publish."
@ -77,7 +77,7 @@ jobs:
fi
- name: Send status to Slack
if: steps.Publish_Toolkit.outputs.skip_publish != 'true'
if: always() && steps.Publish_Toolkit.outputs.skip_publish != 'true'
uses: slackapi/slack-github-action@v2.0.0
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}