Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: add workflows of website build and markdown lint #36

Merged
merged 4 commits into from
Feb 1, 2025

Conversation

gitveg
Copy link
Contributor

@gitveg gitveg commented Jan 26, 2025

Added three workflows regarding #24

  • build : Check website build, triggered by PRs and push .
  • lint : Triggered by PRs and push with changed md files, lint the changed md files with zhlint, generating an artifact with zhlint log and autofix files .
  • lint-all: Same function as lint, but triggered manually, checking all the md files in the repo .

Signed-off-by: Jianuo Kuang <[email protected]>
.github/workflows/lint.yml Outdated Show resolved Hide resolved
.github/workflows/build.yml Outdated Show resolved Hide resolved
.github/workflows/build.yml Outdated Show resolved Hide resolved
.github/workflows/lint.yml Outdated Show resolved Hide resolved
.github/workflows/lint-all.yml Outdated Show resolved Hide resolved
@gitveg gitveg requested a review from inscripoem January 31, 2025 03:14
echo 0 > "$linted_failed_file"
find . -type f -name '*.md' | while read -r file; do
set +e
zhlint --config "$GITHUB_WORKSPACE"/ci/.zhlintrc "$file"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The path is unmatched with line 30.

linted_failed=0
for file in ${{ env.ALL_CHANGED_FILES }}; do
set +e
zhlint --config "$GITHUB_WORKSPACE"/ci/.zhlintrc "$file"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The path is unmatched with line 45.

@inscripoem inscripoem merged commit 7d77c47 into hust-open-atom-club:main Feb 1, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants