Skip to content

Scheduled jobs

Scheduled jobs #195

Workflow file for this run

name: Scheduled jobs
on:
schedule:
- cron: "15 5 * * 1"
jobs:
check-broken-links:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Check for broken links
id: lychee
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2
with:
args: --verbose ./docs/**/*.md ./submodules/chart/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@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5
with:
title: Broken link report
content-filepath: ./lychee/out.md
labels: report, automated issue
check-supported-tools:
runs-on: ubuntu-latest
env:
OUTPUT_FILE: ${{ github.workspace }}/supported-tools-report.txt
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: "3.x"
cache: "pip"
- name: Install dependencies
run: |
pip install -r tools/requirements.txt
- name: Check supported tools
run: |
cd tools
python ./check-supported-tools.py > ${{ env.OUTPUT_FILE }}
- name: Create issue
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5
if: ${{ failure() }}
with:
title: Missing supported tools report
content-filepath: ${{ env.OUTPUT_FILE }}
labels: report, automated issue
check-security-tools:
runs-on: ubuntu-latest
env:
OUTPUT_FILE: ${{ github.workspace }}/security-tools-report.txt
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: "3.x"
cache: "pip"
- name: Install dependencies
run: |
pip install -r tools/requirements.txt
- name: Check tools that report security issues
run: |
cd tools
python ./check-security-tools.py > ${{ env.OUTPUT_FILE }}
- name: Create issue
uses: peter-evans/create-issue-from-file@e8ef132d6df98ed982188e460ebb3b5d4ef3a9cd # v5
if: ${{ failure() }}
with:
title: Missing security tools report
content-filepath: ${{ env.OUTPUT_FILE }}
labels: report, automated issue
compress-images:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Compress images
id: calibre
uses: calibreapp/image-actions@03c976c29803442fc4040a9de5509669e7759b81 # main
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
ignorePaths: submodules/**
compressOnly: true
- name: Create pull request
if: steps.calibre.outputs.markdown != ''
uses: peter-evans/create-pull-request@22a9089034f40e5a961c8808d113e2c98fb63676 # v7
with:
title: "clean: Compress images"
branch-suffix: timestamp
commit-message: "clean: Compress images"
body: ${{ steps.calibre.outputs.markdown }}