Scheduled jobs #99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Scheduled jobs | |
on: | |
schedule: | |
- cron: "15 5 * * 1" | |
jobs: | |
check-broken-links: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Check for broken links | |
id: lychee | |
uses: lycheeverse/[email protected] | |
with: | |
args: --verbose ./docs/**/*.md | |
jobSummary: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create issue | |
if: env.lychee_exit_code != 0 | |
uses: peter-evans/create-issue-from-file@v5 | |
with: | |
title: Broken link report | |
content-filepath: ./lychee/out.md | |
labels: report, automated issue | |
compress-images: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Compress images | |
id: calibre | |
uses: calibreapp/image-actions@main | |
with: | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
compressOnly: true | |
- name: Create pull request | |
if: steps.calibre.outputs.markdown != '' | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
title: "clean: Compress images" | |
branch-suffix: timestamp | |
commit-message: "clean: Compress images" | |
body: ${{ steps.calibre.outputs.markdown }} |