Skip to content

Commit

Permalink
Fix the CI script for linting shared-credentials.json
Browse files Browse the repository at this point in the history
Use `jq` to sort the shared-credentials.json first by the list of "shared" domains and then the "from" domains.
  • Loading branch information
Sameesunkaria committed Feb 26, 2024
1 parent 5978aae commit 0cdd49a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
with:
ruby-version: 2.6
- name: Lint Sort Order
run: ruby .github/workflows/lint-scripts/websites-shared-credentials-sort-order.rb
run: diff quirks/shared-credentials.json <(cat quirks/shared-credentials.json | jq --indent 4 'sort_by(.shared // .from)')
- name: Lint Duplicates
run: ruby .github/workflows/lint-scripts/websites-shared-credentials-duplicates.rb
- name: Verify Generated Files
Expand Down

0 comments on commit 0cdd49a

Please sign in to comment.