ci: hotfix (#14)

hotfix
This commit is contained in:
Dict Xiong 2022-08-28 21:07:10 +08:00 committed by GitHub
parent 18dfca5f39
commit 3421d27be9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -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: |

View File

@ -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"