From f1501b3b1ec21a7add113ed20e5c7f2dd00dce9f Mon Sep 17 00:00:00 2001 From: guillaume chervet Date: Fri, 1 Apr 2022 13:44:43 +0200 Subject: [PATCH] chore(pipeline): manage fork BREAKING CHANGE:isLogged renamed isAuthenticated --- .../workflows/azure-static-web-apps-black-rock-0dc6b0d03.yml | 4 ++-- .github/workflows/npm-publish.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/azure-static-web-apps-black-rock-0dc6b0d03.yml b/.github/workflows/azure-static-web-apps-black-rock-0dc6b0d03.yml index 25c229829..192ff94f8 100644 --- a/.github/workflows/azure-static-web-apps-black-rock-0dc6b0d03.yml +++ b/.github/workflows/azure-static-web-apps-black-rock-0dc6b0d03.yml @@ -11,7 +11,7 @@ on: jobs: build_and_deploy_job: - if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') + if: (github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')) && !github.event.pull_request.head.repo.fork runs-on: ubuntu-latest name: Build and Deploy Job steps: @@ -39,7 +39,7 @@ jobs: ###### End of Repository/Build Configurations ###### close_pull_request_job: - if: github.event_name == 'pull_request' && github.event.action == 'closed' + if: (github.event_name == 'pull_request' && github.event.action == 'closed') && !github.event.pull_request.head.repo.fork runs-on: ubuntu-latest name: Close Pull Request Job steps: diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index baa91b908..6130a678b 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -72,7 +72,7 @@ jobs: - name: SonarCloud Scan uses: sonarsource/sonarcloud-github-action@master - if: github.event.pull_request.head.repo.full_name == github.repository + if: github.event.pull_request.head.repo.full_name == github.repository && !github.event.pull_request.head.repo.fork env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}