From 2d987cd13cef242955b3c1dbaf75b1b26dc7e4c7 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Wed, 2 Sep 2026 16:25:03 +0000 Subject: [PATCH] remove init hook, use default make target --- .gitea/scoped_workflows/static-go.yaml | 6 +++--- .gitea/scoped_workflows/style-web.yaml | 13 +++++++++---- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.gitea/scoped_workflows/static-go.yaml b/.gitea/scoped_workflows/static-go.yaml index 6f61c78..a0a76c1 100644 --- a/.gitea/scoped_workflows/static-go.yaml +++ b/.gitea/scoped_workflows/static-go.yaml @@ -22,10 +22,10 @@ jobs: with: go-version-file: 'go.mod' - - name: Check and Run `make workflow-init` + - name: Check and Run `make` Default Target run: | - if make -n workflow-init > /dev/null 2>&1; then - make workflow-init + if command -v make &> /dev/null; then + make fi - name: Initialize Go diff --git a/.gitea/scoped_workflows/style-web.yaml b/.gitea/scoped_workflows/style-web.yaml index 59ce1d9..c67452f 100644 --- a/.gitea/scoped_workflows/style-web.yaml +++ b/.gitea/scoped_workflows/style-web.yaml @@ -22,10 +22,10 @@ jobs: - name: Initialize Runner uses: actions/setup-node@v4 - - name: Check and Run `make workflow-init` + - name: Check and Run `make` Default Target run: | - if make -n workflow-init > /dev/null 2>&1; then - make workflow-init + if command -v make &> /dev/null; then + make fi - name: Install Linters @@ -59,8 +59,13 @@ jobs: if: always() run: | CONFIG_FILE="dev_config/.stylelintrc.json" + IGNORE_FILE="dev_config/.stylelintignore" if [ -f "$CONFIG_FILE" ]; then - npx stylelint --config "$CONFIG_FILE" --formatter verbose '**/*.css' + if [ -f "$IGNORE_FILE" ]; then + npx stylelint --config "$CONFIG_FILE" --ignore-path "$IGNORE_FILE" --formatter verbose '**/*.css' + else + npx stylelint --config "$CONFIG_FILE" --formatter verbose '**/*.css' + fi fi - name: Run eslint