Skip to content

Commit 2aee789

Browse files
feat: update CI/CD workflows for enhanced documentation dispatch and scheduling
1 parent 61f7146 commit 2aee789

File tree

3 files changed

+28
-6
lines changed

3 files changed

+28
-6
lines changed

.github/workflows/ci-cd.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# =============================================================================
2-
# CI — k3s-lab lint, tests & security
2+
# CI / CD — k3s-lab lint, tests, security & docs dispatch
33
#
44
# Runs on every push and PR to main.
55
# Does NOT require a real cluster — all checks are static/offline.
66
#
77
# Jobs (reusable workflows from KevinDeBenedetti/github-workflows):
8-
# shell-ci — shellcheck + yamllint + bats (via ci-shell.yml)
8+
# shell-ci — shellcheck + actionlint + bats (via ci-shell.yml)
99
# kubernetes — kubeconform + .env.example check (via ci-kubernetes.yml)
1010
# security — Gitleaks secret scanning (via security.yml)
11+
# docs — trigger kevindebenedetti.github.io rebuild (push to main only)
1112
# =============================================================================
1213
name: CI / CD
1314

@@ -17,6 +18,10 @@ on:
1718
pull_request:
1819
branches: [main]
1920

21+
concurrency:
22+
group: ci-cd-${{ github.workflow }}-${{ github.ref }}
23+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
24+
2025
jobs:
2126

2227
# ─── Shell linting + BATS tests ───────────────────────────────────────────
@@ -63,3 +68,13 @@ jobs:
6368
run-python-audit: false
6469
run-secret-scan: true
6570
run-codeql: false
71+
72+
# ─── Docs dispatch (push to main only) ───────────────────────────────────
73+
# Triggers a rebuild of kevindebenedetti.github.io after all CI jobs pass.
74+
# Requires PAT_TOKEN secret (fine-grained PAT with actions:write on the hub repo).
75+
docs:
76+
needs: [shell-ci, kubernetes, security]
77+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
78+
uses: KevinDeBenedetti/github-workflows/.github/workflows/dispatch-docs.yml@main
79+
secrets:
80+
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: prek autoupdate
2+
3+
on:
4+
schedule:
5+
- cron: '0 6 * * 1' # Every Monday at 06:00 UTC
6+
workflow_dispatch:
7+
8+
jobs:
9+
autoupdate:
10+
uses: KevinDeBenedetti/github-workflows/.github/workflows/prek-autoupdate.yml@main
11+
secrets: inherit

renovate.json

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

0 commit comments

Comments
 (0)