Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit 7c67656

Browse files
committed
Add lychee
1 parent 1254b87 commit 7c67656

File tree

12 files changed

+110
-95
lines changed

12 files changed

+110
-95
lines changed

.ansible-lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
warn_list:
2+
- role-name

.github/workflows/ansible-lint.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/links.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Links
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches-ignore:
7+
- main
8+
paths:
9+
- .github/workflows/links.yml
10+
- "**.md"
11+
schedule:
12+
- cron: "0 3 * * 1"
13+
14+
jobs:
15+
linkChecker:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Link Checker
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
uses: lycheeverse/[email protected]
24+
with:
25+
args: --no-progress --exclude-path CHANGELOG.md --exclude-all-private --exclude 'GITHUB_SHA|_VERSION%7D|_TYPE%7D' -- './**/*.md'
26+
fail: true

.github/workflows/linter.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ jobs:
4545
- name: Lint Code Base
4646
uses: docker://ghcr.io/github/super-linter:slim-v4
4747
env:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4948
ERROR_ON_MISSING_EXEC_BIT: true
50-
VALIDATE_ANSIBLE: false
51-
VALIDATE_JSCPD: false
5249
FILTER_REGEX_INCLUDE: .*(\.sh|\.json|\.github|http|tools|docs).*
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
LINTER_RULES_PATH: .
52+
VALIDATE_JSCPD: false

.github/workflows/markdown.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,3 @@ jobs:
3838

3939
- name: Run mdspell
4040
run: find . -type f \( -name "*.md" ! -name "CHANGELOG.md" \) -exec mdspell --ignore-numbers --ignore-acronyms --report --en-gb {} \;
41-
42-
markdown-link-check:
43-
runs-on: ubuntu-latest
44-
steps:
45-
- uses: actions/checkout@v3
46-
47-
- name: Link Checker
48-
uses: ruzickap/action-my-markdown-link-checker@v1
49-
with:
50-
exclude: |
51-
CHANGELOG.md

.github/workflows/mega-linter.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
name: MegaLinter
3+
4+
on:
5+
workflow_dispatch:
6+
push:
7+
branches-ignore:
8+
- main
9+
10+
env:
11+
APPLY_FIXES: all
12+
APPLY_FIXES_EVENT: pull_request
13+
APPLY_FIXES_MODE: commit
14+
15+
concurrency:
16+
group: ${{ github.ref }}-${{ github.workflow }}
17+
cancel-in-progress: trueß
18+
19+
jobs:
20+
build:
21+
name: MegaLinter
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout Code
25+
uses: actions/checkout@v3
26+
with:
27+
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
28+
fetch-depth: 0
29+
30+
- name: MegaLinter
31+
id: ml
32+
uses: megalinter/megalinter@v5
33+
env:
34+
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} # Validates all source when push on main, else just the git diff with main. Override with true if you always want to lint all sources
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
37+
# Upload MegaLinter artifacts
38+
- name: Archive production artifacts
39+
if: ${{ success() }} || ${{ failure() }}
40+
uses: actions/upload-artifact@v2
41+
with:
42+
name: MegaLinter reports
43+
path: |
44+
report
45+
mega-linter.log
46+
retention-days: 1
47+
48+
- name: Create Pull Request with applied fixes
49+
id: cpr
50+
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
51+
uses: peter-evans/create-pull-request@v4
52+
with:
53+
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
54+
commit-message: "[MegaLinter] Apply linters automatic fixes"
55+
title: "[MegaLinter] Apply linters automatic fixes"
56+
labels: bot
57+
58+
- name: Create PR output
59+
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
60+
run: |
61+
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
62+
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
63+
64+
- name: Prepare commit
65+
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
66+
run: sudo chown -Rc $UID .git/
67+
68+
- name: Commit and push applied linter fixes
69+
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository)
70+
uses: stefanzweifel/git-auto-commit-action@v4
71+
with:
72+
branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
73+
commit_message: "[MegaLinter] Apply linters fixes"

.github/workflows/periodic-markdown-links-check.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/shellcheck.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/yamllint.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

bad.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
echo "test: `date`"

0 commit comments

Comments
 (0)