diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 788b731..f5af9e2 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -36,13 +36,13 @@ jobs: uses: actions/checkout@v4 - name: Lint servers.json run: | - if jq empty servers.json > /dev/null 2>&1; then + if ! jq empty servers.json > /dev/null 2>&1; then echo "servers.json is valid" else echo "Invalid JSON file detected in servers.json" exit 1 - name: Setup Pages - uses: actions/configure-pages@v4 + uses: actions/configure-pages@v5 - name: Generate hash file run: | sha256sum servers.json | cut -d ' ' -f1 | cut -c1-8 > servers.json.hash @@ -55,4 +55,4 @@ jobs: path: '.' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file + uses: actions/deploy-pages@v4