🖥

Github Actions + reg suit で snapshot key が検知できない場合

2024/04/27に公開

Error

[reg-suit] warn Failed to detect the previous snapshot key
[reg-suit] info Skipped to fetch the expected data because expected key is null.

対応

checkout でfetch-depth を指定して、全てのヒストリーとコミットを参照できるようにしておけば良かったようだ
もしくは適当に大きな数字を指定しても成り立つかもしれない

Number of commits to fetch.
0 indicates all history for all branches and tags.

https://github.com/actions/checkout

    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

参考

reg suit 公式
https://github.com/reg-viz/reg-suit#getting-started

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

https://line.me/ti/g2/eEPltQ6Tzh3pYAZV8JXKZqc7PJ6L0rpm573dcQ

プロフィール・経歴

https://github.com/YumaInaura/YumaInaura

公開日時

2024-04-22

https://qiita.com/YumaInaura/items/45b5ee6bce97aa826891

GitHubで編集を提案

Discussion