-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6389826
commit 0b2650d
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,6 @@ jobs: | |
# We also run `yarn install` with the `--prefer-offline` flag to speed things up. | ||
lint: | ||
name: Lint | ||
# Lint cannot run on forks, so just skip those! See https://github.com/wearerequired/lint-action/issues/13 | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
|
@@ -46,7 +44,14 @@ jobs: | |
- name: Status | ||
run: git status | ||
|
||
# Lint autofix cannot run on forks, so just skip those! See https://github.com/wearerequired/lint-action/issues/13 | ||
- name: Lint (External) | ||
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.owner.login != github.repository_owner }} | ||
run: yarn lint | ||
|
||
# Otherwise, run lint autofixer | ||
- name: Lint | ||
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner }} | ||
uses: wearerequired/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|