Update ci.yml (#2077)
This commit is contained in:
parent
638982663e
commit
0b2650d713
1 changed files with 7 additions and 2 deletions
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
|
@ -25,8 +25,6 @@ jobs:
|
||||||
# We also run `yarn install` with the `--prefer-offline` flag to speed things up.
|
# We also run `yarn install` with the `--prefer-offline` flag to speed things up.
|
||||||
lint:
|
lint:
|
||||||
name: 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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
|
@ -46,7 +44,14 @@ jobs:
|
||||||
- name: Status
|
- name: Status
|
||||||
run: git 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
|
- name: Lint
|
||||||
|
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.owner.login == github.repository_owner }}
|
||||||
uses: wearerequired/lint-action@v1.10.0
|
uses: wearerequired/lint-action@v1.10.0
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue