summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2021-12-01 19:58:34 -0800
committerGravatar GitHub <noreply@github.com> 2021-12-01 21:58:34 -0600
commit0b2650d71329f4fcdc6f025ec39d70b352990b03 (patch)
treec6099c45824572a801ff58dfc5ec41b6e2efd3d7
parent638982663e4ccdea222f961a5f873a0ffde1b5ed (diff)
downloadastro-0b2650d71329f4fcdc6f025ec39d70b352990b03.tar.gz
astro-0b2650d71329f4fcdc6f025ec39d70b352990b03.tar.zst
astro-0b2650d71329f4fcdc6f025ec39d70b352990b03.zip
Update ci.yml (#2077)
-rw-r--r--.github/workflows/ci.yml9
1 files changed, 7 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 948928e4b..11f60457e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -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/lint-action@v1.10.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}