mirror of
https://github.com/LukeHagar/usage-statistics.git
synced 2025-12-06 04:21:55 +00:00
Update test-action-local.yml
This commit is contained in:
4
.github/workflows/test-action-local.yml
vendored
4
.github/workflows/test-action-local.yml
vendored
@@ -73,7 +73,7 @@ jobs:
|
|||||||
json-output-path: 'stats.json'
|
json-output-path: 'stats.json'
|
||||||
update-readme: 'true'
|
update-readme: 'true'
|
||||||
readme-path: 'Test-Readme.md'
|
readme-path: 'Test-Readme.md'
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.PAT_TOKEN }}
|
||||||
|
|
||||||
- name: Check generated outputs
|
- name: Check generated outputs
|
||||||
run: |
|
run: |
|
||||||
@@ -94,4 +94,4 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "=== Validating stats.json ==="
|
echo "=== Validating stats.json ==="
|
||||||
test -f stats.json || (echo "❌ stats.json not found" && exit 1)
|
test -f stats.json || (echo "❌ stats.json not found" && exit 1)
|
||||||
jq -e 'type == "array" and length >= 1' stats.json > /dev/null || (echo "❌ stats.json not in expected format" && exit 1)
|
jq -e 'type == "array" and length >= 1' stats.json > /dev/null || (echo "❌ stats.json not in expected format" && exit 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user