Skip to content

Commit

Permalink
Revert "Remove job that requires token for now"
Browse files Browse the repository at this point in the history
This reverts commit 0b78758.
  • Loading branch information
westonruter committed Mar 3, 2023
1 parent 0b78758 commit 7d23f80
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,29 @@ jobs:
run: npm run lint:css

- name: Detect ESLint coding standard violations
if: >
github.event.pull_request.head.repo.fork == true ||
github.event.pull_request.user.login == 'dependabot[bot]'
run: npm run lint:js

- name: Generate ESLint coding standard violations report
# Prevent generating the ESLint report if PR is from a fork or authored by Dependabot.
if: >
! ( github.event.pull_request.head.repo.fork == true ||
github.event.pull_request.user.login == 'dependabot[bot]' )
run: npm run lint:js:report
continue-on-error: true

- name: Annotate code linting results
# The action cannot annotate the PR when run from a PR fork or was authored by Dependabot.
if: >
! ( github.event.pull_request.head.repo.fork == true ||
github.event.pull_request.user.login == 'dependabot[bot]' )
uses: ataylorme/[email protected]
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
report-json: 'lint-js-report.json'

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand Down

0 comments on commit 7d23f80

Please sign in to comment.