Skip to content

Commit

Permalink
Update ci.yml (#2077)
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Dec 2, 2021
1 parent 6389826 commit 0b2650d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 0b2650d

Please sign in to comment.