Skip to content

automatic weekly deadlink checker #29

automatic weekly deadlink checker

automatic weekly deadlink checker #29

Workflow file for this run

name: automatic weekly deadlink checker
on:
schedule:
- cron: '0 0 * * SUN'
permissions:
contents: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '14.x'
- run: npm ci
- run: npm test
- name: Set up Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Commit changes
run: |
git add .
git commit -m "Automated commit from GitHub Actions for weekly deadlink check" || echo "No changes to commit"
- name: Push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git push origin main || echo "No changes to push"