commit 177140f8ed5fc229044548186d53f926d5d3400e parent 84839f3f279bac03df4d6e8f7f98528a9f97c8f8 Author: minerva-jupiter <ryouturn@gmail.com> Date: Wed, 9 Sep 2026 03:43:48 +0900 fix(ci): correct GitHub CLI query field from cloneUrl to url Diffstat:
| M | .github/workflows/stagit-build.yml | | | 9 | ++++----- |
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/stagit-build.yml b/.github/workflows/stagit-build.yml @@ -16,6 +16,7 @@ jobs: id-token: write steps: + - name: Clone All Repositories env: GH_TOKEN: ${{ secrets.PORTAL_PAT }} @@ -24,14 +25,12 @@ jobs: mkdir -p repositories html - # アカウント配下の全リポジトリを bare clone - gh repo list --limit 1000 --json cloneUrl -q '.[].cloneUrl' | while read -r url; do + # url フィールドを使用する + gh repo list --limit 1000 --json url -q '.[].url' | while read -r url; do [ -z "$url" ] && continue repo_name=$(basename "$url" .git) git clone --bare "$url" "repositories/${repo_name}.git" - done - - - name: Generate HTML with Stagit Container + done - name: Generate HTML with Stagit Container run: | docker run --rm \ -v "$PWD/html:/html" \