Skip to content

Commit

Permalink
Fix "pre-release" workflow error:
Browse files Browse the repository at this point in the history
Invalid workflow file: .github/workflows/termformatters-main-pre-release.yaml#L98

The workflow is not valid. .github/workflows/termformatters-main-pre-release.yaml
(Line: 98, Col: 9): 'if' is already defined
  • Loading branch information
amarienko committed Oct 17, 2022
1 parent fa877c9 commit 97c8d7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/termformatters-main-pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ jobs:
updateOnlyUnreleased: false
- name: Publish distribution to Test PyPI
# https://github.com/pypa/gh-action-pypi-publish
if: ${{ success() }}
if: ${{ success() }} && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
id: publish_to_test_pypi
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
# Tolerating release package file duplicates
Expand Down

0 comments on commit 97c8d7a

Please sign in to comment.