-
Notifications
You must be signed in to change notification settings - Fork 41
114 lines (97 loc) · 3.03 KB
/
scheduled.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
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 ./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@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@v4
- name: Set up Python
uses: actions/setup-python@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@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@v4
- name: Set up Python
uses: actions/setup-python@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@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@v4
- name: Compress images
id: calibre
uses: calibreapp/image-actions@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@v7
with:
title: "clean: Compress images"
branch-suffix: timestamp
commit-message: "clean: Compress images"
body: ${{ steps.calibre.outputs.markdown }}