Example workflow:
on: [push]
jobs:
find_dead_links:
runs-on: ubuntu-latest
name: Deadlink crawler
steps:
- name: Scan links
uses: JustFixNYC/deadlink-crawler@v1.0
with:
site-url: "https://www.justfix.org/en/learn"
token: ${{ secrets.GITHUB_TOKEN }}
npm install
to get set upnode index.js
to run the action locally (comment out the areas that require a Github token)
Generate the built files, commit and tag, then push the tagged commit.
npm run build
git commit -m "Commit message"
git tag -a -m "Tag message" v1.0
git push --follow-tags