From 2d3b0c6a06e240faa7bb84306c791219c6c3cf57 Mon Sep 17 00:00:00 2001 From: ROBOT Date: Sun, 26 Apr 2026 12:15:41 +0900 Subject: [PATCH 1/4] fix: add gh login --- .github/workflows/deploy.yml | 1 + .github/workflows/preview.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d6f5fd0..1f006bb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -56,6 +56,7 @@ jobs: - name: Commit changes to gh-pages branch run: | + echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token git config --global user.name "GitHub Actions" git config --global user.email "action@github.com" git add -N . diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index be8b529..2d34603 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -74,6 +74,7 @@ jobs: - name: Remove preview directory run: | rm -rf ./preview/${{ env.PAGE_DIR }} || exit 0 + echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token git config user.name github-actions git config user.email github-actions@github.com git add . From 8a8d935ca797fb4b412776e274aaf63e5d9b0f0a Mon Sep 17 00:00:00 2001 From: ROBOT Date: Sun, 26 Apr 2026 12:22:21 +0900 Subject: [PATCH 2/4] fix: add repo --- .github/workflows/preview.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 2d34603..daafb0b 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -35,6 +35,7 @@ jobs: - name: Checkout gh-pages uses: actions/checkout@v4 with: + repository: ${{ github.repository }} ref: gh-pages - name: Commit changes to gh-pages branch @@ -69,6 +70,7 @@ jobs: - name: Checkout gh-pages uses: actions/checkout@v4 with: + repository: ${{ github.repository }} ref: gh-pages - name: Remove preview directory From 64e1ddbf31113cc23440bea12779f4e8244afa2e Mon Sep 17 00:00:00 2001 From: ROBOT Date: Sun, 26 Apr 2026 12:29:22 +0900 Subject: [PATCH 3/4] fix: repo --- .github/workflows/preview.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index daafb0b..58fb41d 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -35,7 +35,7 @@ jobs: - name: Checkout gh-pages uses: actions/checkout@v4 with: - repository: ${{ github.repository }} + repository: Rust-Developers-JP/rustrefjp ref: gh-pages - name: Commit changes to gh-pages branch @@ -70,13 +70,12 @@ jobs: - name: Checkout gh-pages uses: actions/checkout@v4 with: - repository: ${{ github.repository }} + repository: Rust-Developers-JP/rustrefjp ref: gh-pages - name: Remove preview directory run: | rm -rf ./preview/${{ env.PAGE_DIR }} || exit 0 - echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token git config user.name github-actions git config user.email github-actions@github.com git add . From d4943b180077b48dde118ebcf3726b4224084520 Mon Sep 17 00:00:00 2001 From: ROBOT Date: Sun, 26 Apr 2026 12:32:56 +0900 Subject: [PATCH 4/4] fix: add gh auth login --- .github/workflows/preview.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 58fb41d..deb9442 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -40,6 +40,7 @@ jobs: - name: Commit changes to gh-pages branch run: | + echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token git config --global user.name "GitHub Actions" git config --global user.email "action@github.com" mkdir -p ./preview/${{ env.PAGE_DIR }}