diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index cef6567386..eb39fd23d7 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -15,7 +15,7 @@ on: jobs: # enrich tag for pr release set-tag: - if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false && github.base_ref == 'develop' }} + if: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false && github.base_ref == 'develop' }} runs-on: 'ubuntu-latest' steps: - name: set-tag @@ -42,7 +42,7 @@ jobs: # Build, install, publish frontend and backend to npm release-npm: - if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false && github.base_ref == 'develop' }} + if: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false && github.base_ref == 'develop' }} needs: [set-tag] uses: ./.github/workflows/release-npm.yml with: @@ -53,7 +53,7 @@ jobs: # Build docker image and push to docker hub release-docker: - if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false && github.base_ref == 'develop' }} + if: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false && github.base_ref == 'develop' }} needs: [release-npm, set-tag] uses: ./.github/workflows/release-docker.yml with: @@ -67,7 +67,7 @@ jobs: # Build executables and publish to GitHub release-executables: - if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false && github.base_ref == 'develop' }} + if: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false && github.base_ref == 'develop' }} needs: [set-tag, release-npm] uses: ./.github/workflows/release-timely-executables.yml with: @@ -77,7 +77,7 @@ jobs: # Add a comment for PR docker build leave-comment: - if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false && github.base_ref == 'develop' }} + if: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false && github.base_ref == 'develop' }} runs-on: 'ubuntu-latest' needs: [release-docker, set-tag] steps: @@ -91,7 +91,7 @@ jobs: # Add a comment for PR executable build leave-executable-comment: - if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false && github.base_ref == 'develop' }} + if: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' && github.event.pull_request.draft == false && github.base_ref == 'develop' }} runs-on: 'ubuntu-latest' needs: [release-executables, set-tag] steps: