Skip to content

Feat/debugger

Feat/debugger #81

Workflow file for this run

name: Validate Links
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
schedule:
# Run every Sunday at 00:00 UTC
- cron: '0 0 * * 0'
workflow_dispatch:
permissions:
contents: read
issues: write
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Restore lychee cache
uses: actions/cache@v4
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- name: Link Checker
uses: lycheeverse/lychee-action@a8c4c7cb88f0c7386610c35eb25108e448569cb0 # v2.7.0
id: lychee
with:
# Check all markdown files
args: |
--verbose
--root-dir "$(pwd)"
--cache --max-cache-age 1d .
--no-progress
--accept=200,201,202,203,204,205,206,429
--timeout 20
--max-retries 3
--user-agent="Mozilla/5.0 (compatible; arkscript-lang/1.0)"
fail: false
- name: Save lychee cache
uses: actions/cache/save@v4
if: always()
with:
path: .lycheecache
key: ${{ steps.restore-cache.outputs.cache-primary-key }}
- uses: nickderobertis/check-if-issue-exists-action@8edfc8560578e80eb6061565e5359d85d5d63b74
name: Check if Issue Exists
id: check_if_issue_exists
with:
repo: ArkScript-lang/Ark
token: ${{ secrets.GITHUB_TOKEN }}
title: Link Checker Report
labels: report, automated issue
# todo: update existing issue if it already exists
- name: Create Issue From File
if: steps.lychee.outputs.exit_code != 0 && steps.check_if_issue_exists.outputs.exists == 'false'
uses: peter-evans/create-issue-from-file@v5
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: report, automated issue