From 3421d27be95b66aafa990bab74bd6b4879ad80c7 Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Sun, 28 Aug 2022 21:07:10 +0800 Subject: [PATCH] ci: hotfix (#14) hotfix --- .github/workflows/test.yml | 4 ++++ .update.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 83552fa..f6f1952 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,6 +15,8 @@ jobs: - name: checkout repo uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: install dfs run: | @@ -46,6 +48,8 @@ jobs: - name: checkout repo uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: install dfs run: | diff --git a/.update.sh b/.update.sh index fa8557f..5ff9056 100644 --- a/.update.sh +++ b/.update.sh @@ -13,7 +13,7 @@ if [[ ${#dfs_commit} != 40 ]]; then fi # fetch origin cd $DOTFILES -git fetch +git fetch --all if [[ -n "$(git status -s)" ]]; then fmt_error "directory not clean" post_log "ERROR" "$THIS_FILE" "directory not clean"