diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b23d18a..f3b7518 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,8 @@ jobs: tag_release: needs: [isort, black, build] runs-on: ubuntu-latest - if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository }} # if the repo is the main one. + # if the repo is the main one or is triggered manually. + if: ${{ (github.event_name == 'workflow_dispatch') || (github.event.pull_request.head.repo.full_name == github.repository) }} outputs: tag: ${{ steps.semver.outputs.next }} old_tag: ${{ steps.semver.outputs.current }}