Skip to content

Commit

Permalink
Try to simplify for comparing forks
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlende committed Jul 31, 2024
1 parent 466041e commit 161aa6e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/validate-schemas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}

- name: Fetch compare
run: |
git remote add upstream ${{ github.event.pull_request.base.repo.repositoryUrl }}
git fetch --no-write-fetch-head --depth=1 upstream ${{ github.event.pull_request.base.ref }}
fetch-depth: 2

- name: Setup Node
uses: actions/setup-node@v4
Expand All @@ -40,4 +34,4 @@ jobs:
run: npm ci

- name: Validate JSON files
run: node theme-utils.mjs validate-schema $(git diff --name-only upstream/${{ github.event.pull_request.base.ref }} ${{ github.event.pull_request.head.ref }} -- ${{ env.PR_PATHS }} | tr '\n' ' ')
run: node theme-utils.mjs validate-schema $(git diff --name-only origin/${{ github.base_ref }}...HEAD -- ${{ env.PR_PATHS }} | tr '\n' ' ')

0 comments on commit 161aa6e

Please sign in to comment.