Skip to content

Commit

Permalink
chore(pipeline): manage fork
Browse files Browse the repository at this point in the history
BREAKING CHANGE:isLogged renamed isAuthenticated
  • Loading branch information
guillaume-chervet committed Apr 1, 2022
1 parent cee3d5c commit f1501b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit f1501b3

Please sign in to comment.