Dead Link Check #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dead Link Check | |
on: | |
schedule: | |
- cron: '0 3 * * 0' # every sunday 3am | |
workflow_dispatch: | |
jobs: | |
dead-link-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Repository | |
uses: actions/checkout@v2 | |
- name: Set up NodeJS | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14 | |
- name: Install Packages | |
working-directory: digiges-dead-link-checker | |
run: npm install | |
- name: Run dead link checker | |
working-directory: digiges-dead-link-checker | |
env: | |
WEB_ROOT: https://www.digitale-gesellschaft.ch | |
run: node check.mjs | tee out.csv | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: link-checker-log | |
path: digiges-dead-link-checker/out.csv |