mirror of
https://github.com/Cockatrice/Magic-Token.git
synced 2026-04-22 17:47:31 -05:00
47 lines
1.3 KiB
YAML
47 lines
1.3 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
|
|
|
|
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 tokens.xml
|
|
- name: Check tokens.xml URLs
|
|
uses: lycheeverse/lychee-action@v1
|
|
if: always()
|
|
with:
|
|
args: '--no-progress --require-https --cache --max-cache-age 1h -- tokens.xml'
|
|
fail: true
|
|
jobSummary: true
|
|
|
|
# Extract and check URLs directly from challenge_tokens.xml
|
|
- name: Check challenge_tokens.xml URLs
|
|
uses: lycheeverse/lychee-action@v1
|
|
if: always()
|
|
with:
|
|
args: '--no-progress --require-https --cache --max-cache-age 1h -- challenge_tokens.xml'
|
|
fail: true
|
|
jobSummary: true
|