We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 901058b + 726c96e commit 1a000daCopy full SHA for 1a000da
.github/workflows/finalize_release.yml
@@ -93,8 +93,10 @@ jobs:
93
echo "::add-mask::$PYPI_PASSWORD"
94
- name: Validate PyPi id/password
95
run: |
96
- echo "::add-mask::${{ github.event.inputs.PYPI_API_TOKEN }}"
97
- if [ "${{ github.event.inputs.PYPI_API_TOKEN }}" == "" ]
+ # Workaround for Actions bug - https://github.com/actions/runner/issues/643
+ PYPI_API_TOKEN=$(jq -r '.inputs.PYPI_API_TOKEN' $GITHUB_EVENT_PATH)
98
+ echo "::add-mask::$PYPI_API_TOKEN"
99
+ if [ "$PYPI_API_TOKEN" == "" ]
100
then
101
echo "Must provide a PyPi password to publish artifacts to PyPi"
102
exit 1
0 commit comments