Skip to content

Commit ad63453

Browse files
fix: missing skip-existing command handling (#884)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent d114045 commit ad63453

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

_release-pypi/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,20 +159,20 @@ runs:
159159
SKIP_EXISTING: ${{ inputs.skip-existing }}
160160
run: |
161161
if [[ "${SKIP_EXISTING}" == 'true' ]]; then
162-
echo "SKIP_EXISTING=$(echo '--skip-existing')" >> ${GITHUB_OUTPUT}
162+
echo "SKIP_EXISTING_CMD=$(echo '--skip-existing')" >> ${GITHUB_OUTPUT}
163163
else
164-
echo "SKIP_EXISTING=$(echo '')" >> ${GITHUB_OUTPUT}
164+
echo "SKIP_EXISTING_CMD=$(echo '')" >> ${GITHUB_OUTPUT}
165165
fi
166166
167167
- name: "Upload artifacts to PyPi"
168168
shell: bash
169169
if: inputs.dry-run == 'false' && inputs.use-trusted-publisher == 'false'
170170
run: |
171-
python -m twine upload --verbose $SKIP_EXISTING ${LIBRARY_NAME}-artifacts/*.whl
172-
python -m twine upload --verbose $SKIP_EXISTING ${LIBRARY_NAME}-artifacts/*.tar.gz
171+
python -m twine upload --verbose ${SKIP_EXISTING_CMD} ${LIBRARY_NAME}-artifacts/*.whl
172+
python -m twine upload --verbose ${SKIP_EXISTING_CMD} ${LIBRARY_NAME}-artifacts/*.tar.gz
173173
env:
174174
TWINE_USERNAME: ${{ inputs.twine-username }}
175175
TWINE_PASSWORD: ${{ inputs.twine-token }}
176176
TWINE_REPOSITORY_URL: ${{ inputs.index-name }}
177177
LIBRARY_NAME: ${{ inputs.library-name }}
178-
178+
SKIP_EXISTING_CMD: ${{ steps.skip-existing.outputs.SKIP_EXISTING_CMD }}

doc/source/changelog/884.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Missing skip-existing command handling

0 commit comments

Comments
 (0)