diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3b7518..06c8237 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: needs: [isort, black, build] runs-on: ubuntu-latest # 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) }} + if: ${{ (github.event_name == 'workflow_dispatch') || (github.event.push.head.repo.full_name == github.repository) }} outputs: tag: ${{ steps.semver.outputs.next }} old_tag: ${{ steps.semver.outputs.current }} diff --git a/.github/workflows/validate-pr.yaml b/.github/workflows/validate-pr.yaml index 14be17e..ff9ab14 100644 --- a/.github/workflows/validate-pr.yaml +++ b/.github/workflows/validate-pr.yaml @@ -2,7 +2,7 @@ name: Validate Pull Request Name on: pull_request: - types: [edited] + types: [edited, opened, reopened] workflow_dispatch: jobs: