feat: migrate workflows to kcl-ci standard

- Add .forgejo/kcl-ci/ with kcl.mod, main.k, Taskfile.yaml
- claude.yml: use claude.k module (fixes #comment YAML validation error,
  removes duplicate pull_request_comment trigger)
- ci.yml: add paths-ignore for kcl-ci paths, named jobs for check constants
- test-action.yml: regenerated from KCL (functionally identical)
- upstream-sync.yml: regenerated from KCL (functionally identical)
- kcl-ci-build.yml: new auto-regeneration workflow (waits for CI checks)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Vlad MocanuandClaude Opus 4.6 committed 2026-02-27 11:40:47 +02:00
1 parent 8125818e24
commit 5c014823e0
9 files changed
+821 -383

No files matched your search

+47
View File
@@ -0,0 +1,47 @@
# Generated by KCL v1.34.3 - DO NOT EDIT
# Source: .forgejo/kcl-ci/main.k
# kcl-ci local: ~/stuff/gitrepos/wxs/actions/kcl-ci
# kcl-ci remote: https://git.wxs.ro/actions/kcl-ci
name: KCL CI Build
'on':
push:
branches:
- main
paths:
- '.forgejo/kcl-ci/**'
- '.forgejo/workflows/kcl-ci-build.yml'
workflow_dispatch: {}
concurrency:
group: kcl-ci-${{ github.ref }}
cancel-in-progress: true
jobs:
wait-for-tests:
name: Wait for Tests
runs-on: grunt
if: github.event_name == 'push'
steps:
- name: Wait for test checks to complete
uses: https://${{ secrets.READ_REPO_TOKEN }}@git.wxs.ro/actions/wait-for-checks@v2
with:
token: ${{ github.token }}
timeout: '300'
checks: |-
CI / Tests (push),
CI / Prettier (push),
CI / Type Check (push)
build:
name: Build KCL Workflows
runs-on: grunt
needs:
- wait-for-tests
if: always() && (needs.wait-for-tests.result == 'success' || needs.wait-for-tests.result == 'skipped')
steps:
- name: Build KCL workflows
uses: https://${{ secrets.READ_REPO_TOKEN }}@git.wxs.ro/actions/kcl-ci@v1.34.3
with:
read-repo-token: ${{ secrets.READ_REPO_TOKEN }}
working-dir: '.forgejo/kcl-ci'
commit-changes: 'true'
file-pattern: '.forgejo/workflows/*.yml'
commit-message: 'chore: regenerate workflows from KCL [skip ci]'