@@ -111,16 +111,16 @@ jobs:
111111 - name : Generate ESLint coding standard violations report
112112 # Prevent generating the ESLint report if PR is from a fork or authored by Dependabot.
113113 if : >
114- github.event.pull_request.head.repo.fork == false &&
115- github.event.pull_request.user.login != 'dependabot'
114+ ! ( github.event.pull_request.head.repo.fork == true ||
115+ github.event.pull_request.user.login == 'dependabot' )
116116 run : npm run lint:js:report
117117 continue-on-error : true
118118
119119 - name : Annotate code linting results
120120 # The action cannot annotate the PR when run from a PR fork or was authored by Dependabot.
121121 if : >
122- github.event.pull_request.head.repo.fork == false &&
123- github.event.pull_request.user.login != 'dependabot'
122+ ! ( github.event.pull_request.head.repo.fork == true ||
123+ github.event.pull_request.user.login == 'dependabot' )
124124125125 with :
126126 repo-token : ' ${{ secrets.GITHUB_TOKEN }}'
@@ -665,7 +665,8 @@ jobs:
665665 name : ' Build: ${{ matrix.build }} build ZIP'
666666 # Only run if the PR was not authored by Dependabot and it is not a draft or not from a fork.
667667 if : >
668- ( github.event.pull_request.draft || github.event.pull_request.head.repo.fork ) == false &&
668+ github.event.pull_request.draft == false &&
669+ github.event.pull_request.head.repo.fork == false &&
669670 github.event.pull_request.user.login != 'dependabot'
670671 runs-on : ubuntu-latest
671672 needs :
0 commit comments