From 51e494fabcdaf3eded5d6c3272879530770f2c87 Mon Sep 17 00:00:00 2001 From: nornen0202 Date: Mon, 6 Apr 2026 09:15:15 +0900 Subject: [PATCH] Add Git Bash path for Pages upload --- .github/workflows/daily-codex-analysis.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/daily-codex-analysis.yml b/.github/workflows/daily-codex-analysis.yml index d967705c..325b5d74 100644 --- a/.github/workflows/daily-codex-analysis.yml +++ b/.github/workflows/daily-codex-analysis.yml @@ -107,6 +107,24 @@ jobs: python @args + - name: Add Git Bash to PATH for Pages packaging + shell: powershell + run: | + $gitBinCandidates = @( + "C:\Program Files\Git\bin", + "C:\Program Files\Git\usr\bin" + ) + + foreach ($candidate in $gitBinCandidates) { + if (Test-Path (Join-Path $candidate "bash.exe")) { + Add-Content -Path $env:GITHUB_PATH -Value $candidate + Write-Host "Added Git Bash path: $candidate" + exit 0 + } + } + + throw "bash.exe was not found under the expected Git for Windows directories." + - name: Upload GitHub Pages artifact uses: actions/upload-pages-artifact@v3 with: