diff --git a/.github/workflows/publish-toolkit.yml b/.github/workflows/publish-toolkit.yml index 738c3c70..cceb67bb 100644 --- a/.github/workflows/publish-toolkit.yml +++ b/.github/workflows/publish-toolkit.yml @@ -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 }}