Broken link checker #150
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: Broken link checker | |
on: | |
schedule: | |
- cron: '0 5 * * 1-5' | |
workflow_dispatch: | |
inputs: { url: { description: 'URL to check', required: false, default: 'https://es-hangul.slash.page' } } | |
jobs: | |
broken-link-checker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'yarn' | |
cache-dependency-path: 'yarn.lock' | |
node-version-file: '.nvmrc' | |
- name: Install Dependencies | |
run: yarn install | |
- name: Check broken link | |
env: | |
url: ${{ github.event.inputs.url || 'https://es-hangul.slash.page' }} | |
run: yarn blc $url --ro |