refactor: refactor to composite actions for better shared workflow#36
Merged
Conversation
ce539fd to
ed18098
Compare
Move basic checks to local actions and update scripts to use POSIX-compliant regex for bett
portability.
Migrate JSON,
TOML, and YAML validation logic to dedicated composite actions.
Refactor frontend checks to separate logic from config using templates and local actions.
Modularize Go and Python workflows into reusable composite actions.
bbb0d0b to
9a60f5b
Compare
Update `entrypoint.yml` to correctly find and delete all previous bot comments before posting a new one. Also, enable configuration file checks by default in `main.yml`.
This commit removes several shell scripts that were previously used for various checks within the GitHub Actions workflows. These scripts are no longer needed as their functionality has either been replaced or integrated elsewhere.
9a60f5b to
d512eaa
Compare
1 task
d512eaa to
9fba75e
Compare
This was referenced Feb 1, 2026
9fba75e to
3584984
Compare
torrid-fish
reviewed
Feb 13, 2026
- Refactor HOW_TO_ADD_WORKFLOWS.md: clearer step-by-step workflow architecture - Rewrite README.md in Traditional Chinese with architecture diagrams - Document output contracts and naming conventions - Add local testing instructions with act and yamllint
3584984 to
b41a9a0
Compare
🛡️ PR Quality Check Summary✅ PR Title: Passed (Length: 66/75, Format: OK). 🎉 All checks passed! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的
本 PR 旨在解決 Shared Workflows 被外部專案引用時發生的 Script 路徑錯誤(
No such file or directory),同時修正 CI Checkout 行為以確保測試的是 Merge Commit 而非 Branch Tip。此外,也藉此機會重構了架構,使其更模組化且符合最佳實踐。方法/實作說明
主要修改:
basic,config,frontend,python等檢查邏輯封裝為 Composite Actions(位於.github/actions/),利用${{ github.action_path }}解決路徑依賴問題。關鍵實作:
actions/checkout中的ref: ${{ github.head_ref }},改用預設行為(測試 Merge Commit),以更精準地抓出合併衝突與整合問題。.github/workflows/main.yml中啟用run-config-checks,確保本專案自身的設定檔與 Workflow 定義符合規範。templates/複製預設設定。關聯 Issue
Closes #34
附註
本次重構涉及檔案移動較大,建議使用
File changes中的Hide whitespace功能進行 Review。.github/scripts遺留檔案act進行本地測試通過