From b0d45b11f92cc0bbf980c9cf3e8ad31f15d7d8ab Mon Sep 17 00:00:00 2001 From: "Nanashi." Date: Wed, 23 Oct 2024 22:11:48 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=E6=9D=A1=E4=BB=B6=E5=BC=8F=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [update snapshots] --- .github/workflows/test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e8ce77fcb9..58a56d770d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -190,7 +190,8 @@ jobs: # persist-credentials: false にしないと自前のトークンで push した時(=スナップショットを更新した時)に # pull_request の CI が再実行されないので、スナップショットを更新するときは false にする # https://github.com/orgs/community/discussions/25702#discussioncomment-3248819 - persist-credentials: ${{ (needs.config.outputs.updateSnapshots && needs.config.outputs.pushPatProvided) && 'false' || 'true' }} + persist-credentials: + ${{ !(needs.config.outputs.updateSnapshots == 'true' && needs.config.outputs.pushPatProvided == 'true') }} - name: Download artifacts uses: actions/download-artifact@v4 @@ -213,7 +214,7 @@ jobs: git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" git add tests/ - git commit -m "(スナップショットを更新)" + git commit -m "(スナップショットを更新)" --allow-empty echo "changes_exist=true" >> $GITHUB_OUTPUT else