Magic-Token/.github/workflows/check_links.yml
ebbit1q 7dafd41d28
set xsi to http instead of https (#206)
* set xsi to http instead of https

* update check_links.yml

* use env. context

* remove continue-on-error

* all at once

* step name

* update version to 20230313

---------

Co-authored-by: tooomm <tooomm@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
2023-03-13 22:28:03 +01:00

39 lines
1.0 KiB
YAML

name: Picture Health
on:
pull_request:
# Default events are opened, synchronized or reopened
workflow_dispatch:
schedule:
# Runs at the start of each month (UTC)
- cron: '0 0 1 * *'
jobs:
check_urls:
# Do not run the scheduled workflow on forks
if: ( github.event_name != 'schedule' || github.repository_owner == 'Cockatrice' )
name: Check image links
runs-on: ubuntu-latest
env:
lychee_args: '--no-progress --require-https --cache --max-cache-age 1h --exclude http://www.w3.org'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up lychee cache
uses: actions/cache@v3
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
# Extract and check URLs directly from token files
- name: Check token art URLs
uses: lycheeverse/lychee-action@v1
with:
args: '${{env.lychee_args}} -- tokens.xml challenge_tokens.xml'
fail: true
jobSummary: true