online-judge-tools / verification-helper

a testing framework for snippet libraries used in competitive programming
MIT License
207 stars 53 forks source link

`actions/checkout@v3` だと gh-pages の更新に失敗する #406

Closed kzrnm closed 6 months ago

kzrnm commented 2 years ago

Summary / 概要

Steps to reproduce / 再現方法

  1. GitHub Actions の checkout を uses: actions/checkout@v3 で行う

environments:

Expected behavior / 期待される挙動

gh-pages が更新される

Actual behavior / 実際の挙動

error: pathspec 'gh-pages' did not match any file(s) known to git

というエラーで checkout に失敗してしまう。

Other notes / その他

kzrnm commented 2 years ago

fetch-depth: 0 にすれば大丈夫です

      - uses: actions/checkout@v3
        with:
          fetch-depth: 0
koba-e964 commented 6 months ago

現在は再現できません。この問題はまだ続いていますか?

kzrnm commented 6 months ago

どこかしらで fetch するような修正が入って直ったのなら問題ないのではないかと思います。 そのような修正がないのに直ったのなら再現手順に合致してない可能性があるのでもう一度確認してみてください。

koba-e964 commented 6 months ago

https://github.com/online-judge-tools/verification-helper/commit/ca3485df49388aaca182312cc6853d879ef64d68 で修正されているような気がしてきました 解決済みと思われるので close します、ありがとうございました