Skip to content

Commit

Permalink
Fix linting for both publishing as well as PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
nythepegasus authored Oct 22, 2024
1 parent 550e776 commit 9a19067
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/lint-json.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Lint JSON

on:
push:
branches:
- main
pull_request:
branches:
- main
Expand Down
20 changes: 19 additions & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,30 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update APT cache
run: sudo apt-get update
- name: Install jq
run: sudo apt-get install -y jq
- name: Lint servers.json
run: |
if ! jq empty servers.json; then
echo "Invalid JSON file detected in servers.json"
exit 1
else
echo "servers.json is valid"
fi
- name: Cache APT packages
uses: actions/cache@v4
with:
path: /var/cache/apt/archives
key: ${{ runner.os }}-apt-cache
restore-keys: |
${{ runner.os }}-apt-cache
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit 9a19067

Please sign in to comment.