Skip to content

Commit

Permalink
Fix: 条件式を修正
Browse files Browse the repository at this point in the history
[update snapshots]
  • Loading branch information
sevenc-nanashi authored Oct 23, 2024
1 parent 69b77df commit b0d45b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b0d45b1

Please sign in to comment.