Skip to content

Commit

Permalink
Change: 常にfalseに
Browse files Browse the repository at this point in the history
[update snapshots]
  • Loading branch information
sevenc-nanashi authored Oct 23, 2024
1 parent b0d45b1 commit 798562f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
runs-on: ubuntu-latest
outputs:
shouldUpdateSnapshots: ${{ steps.check-whether-to-update-snapshots.outputs.shouldUpdateSnapshots }}
pushPatProvided: ${{ steps.check-whether-to-update-snapshots.outputs.pushPatProvided }}
steps:
- name: Check if commit message includes [update snapshots]
id: check-whether-to-update-snapshots
Expand All @@ -47,7 +46,6 @@ jobs:
"Pull RequestのCIは手動で再実行する必要があります。"
);
}
core.setOutput("pushPatProvided", pushPatProvided);
console.log(`pushPatProvided: ${pushPatProvided}`);
# ビルドのテスト
Expand Down Expand Up @@ -188,10 +186,9 @@ jobs:
- uses: actions/checkout@v4
with:
# persist-credentials: false にしないと自前のトークンで push した時(=スナップショットを更新した時)に
# pull_request の CI が再実行されないので、スナップショットを更新するときは false にする
# pull_request の CI が再実行されないので false にしている。
# https://github.com/orgs/community/discussions/25702#discussioncomment-3248819
persist-credentials:
${{ !(needs.config.outputs.updateSnapshots == 'true' && needs.config.outputs.pushPatProvided == 'true') }}
persist-credentials: false

- name: Download artifacts
uses: actions/download-artifact@v4
Expand Down

0 comments on commit 798562f

Please sign in to comment.