Skip to content

Commit

Permalink
Error if user forgot to set pypi secret
Browse files Browse the repository at this point in the history
  • Loading branch information
Conchylicultor committed May 31, 2022
1 parent eccfc28 commit 5a6c24b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ inputs:
pypi-token:
description: 'Token of the PyPI account publishing the project. If missing, PyPI release is skipped.'
required: false
default: 'skip' # Use sentinel value to error if user forgot to set the GitHub secret
gh-token:
description: 'Github action token. If missing, GitHub release is skipped.'
required: false
Expand Down Expand Up @@ -53,7 +54,7 @@ runs:
# Publish the package (if local `__version__` < pip version)
- if: |
inputs.pypi-token
inputs.pypi-token != 'skip'
&& steps.compare-version.outputs.should-release == 'true'
uses: etils-actions/pypi-build-publish@v1
with:
Expand Down

0 comments on commit 5a6c24b

Please sign in to comment.