Skip to content

Commit

Permalink
Skip pdf option
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderke committed Mar 8, 2024
1 parent 9de7feb commit df494f1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@ jobs:
- name: Static HTML
run: |
npx respec --localhost --src index.html --out ~/static/snapshot.html
- name: PDF
- name: Check config
id: config
if: ${{ github.event_name == 'push'}}
run: |
echo "grep=false" >> $GITHUB_OUTPUT
if grep -q alternateFormats ./js/config.js; then
echo "grep=true" >> $GITHUB_OUTPUT
fi
- name: PDF
if: ${{ steps.config.outputs.grep == 'true' }}
run: |
cp ./js/config.js config.js
echo "module.exports = { respecConfig };" >> config.js
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ jobs:
--exclude '8080\/\S*\.pdf'
--exclude 'upwork.com'
--exclude 'sitearchief.nl'
--exclude 'opengis.net'
--header 'user-agent:Curl' --ignore-fragments --one-page-only http://localhost:8080/snapshot.html
--buffer-size 8192
15 changes: 0 additions & 15 deletions scripts/pdf-name.py

This file was deleted.

0 comments on commit df494f1

Please sign in to comment.