Update Publish Toolkit Workflow (#303)
This commit is contained in:
parent
e048f277fd
commit
5afd31ba27
1 changed files with 2 additions and 2 deletions
4
.github/workflows/publish-toolkit.yml
vendored
4
.github/workflows/publish-toolkit.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue