From ad89714ed57122ccb373c283608dd6b5deaaa911 Mon Sep 17 00:00:00 2001 From: roottool <11808736+roottool@users.noreply.github.com> Date: Sun, 19 Jul 2026 15:32:34 +0900 Subject: [PATCH 1/2] ci: Update Merge Gatekeeper condition for job execution --- .github/workflows/ci.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c54ba7c..e29a28e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -103,7 +103,6 @@ jobs: runs-on: ubuntu-slim timeout-minutes: 2 needs: [test] - if: ${{ !(failure() || contains(needs.*.result, 'cancelled')) }} + if: always() && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) steps: - - name: Exit with success - run: exit 0 + - run: exit 1 From dfc5a075d0c3de28f1d9f207f7b83df0d7b7083d Mon Sep 17 00:00:00 2001 From: roottool Date: Sun, 19 Jul 2026 15:44:50 +0900 Subject: [PATCH 2/2] ci: Revert shell lint steps to find-based file discovery The paths-filter file-list approach required a predicate-quantifier workaround to exclude examples/, adding complexity without removing any real risk. Reverting to find/grep keeps the exclusion working as before and adds the previously missing dot_profile pattern. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/ci.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e29a28e..92cd3ae 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -22,7 +22,6 @@ jobs: markdown: ${{ steps.filter.outputs.markdown }} markdown_files: ${{ steps.filter.outputs.markdown_files }} shellscript: ${{ steps.filter.outputs.shellscript }} - shellscript_files: ${{ steps.filter.outputs.shellscript_files }} if: ${{ !github.event.pull_request.draft }} steps: - name: Assign yourself to this PR @@ -51,7 +50,6 @@ jobs: - 'dot_profile' - 'dot_zprofile' - 'dot_zsh*' - - '!examples/**' lint: name: Lint @@ -71,14 +69,10 @@ jobs: - parallel: - name: Check formatting (shfmt) if: ${{ needs.setup.outputs.shellscript == 'true' }} - env: - SHELLSCRIPT_FILES: ${{ needs.setup.outputs.shellscript_files }} - run: shfmt -d $SHELLSCRIPT_FILES + run: find . -type f \( -name 'dot_profile' -o -name 'dot_z*' -o -name '*.sh' -o -name '*.zsh' \) | grep -Ev 'examples/*' | xargs shfmt -d - name: ShellCheck if: ${{ needs.setup.outputs.shellscript == 'true' }} - env: - SHELLSCRIPT_FILES: ${{ needs.setup.outputs.shellscript_files }} - run: shellcheck $SHELLSCRIPT_FILES + run: find . -type f \( -name 'dot_profile' -o -name 'dot_z*' -o -name '*.sh' -o -name '*.zsh' \) | grep -Ev 'examples/*' | xargs shellcheck - name: Markdown lint if: ${{ needs.setup.outputs.markdown == 'true' }} uses: DavidAnson/markdownlint-cli2-action@8de2aa07cae85fd17c0b35642db70cf5495f1d25 # v24.0.0