diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 250098e..306b608 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -42,6 +42,8 @@ jobs: # coverage-report ブランチが存在しない場合は作成 あればチェックアウト if ! git ls-remote --exit-code origin coverage-report; then # coverage-report ブランチが存在しない場合は作成 + git checkout -t origin/coverage-report + else git checkout --orphan coverage-report git rm -rf . # すべてのファイルを削除 fi