mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-07 11:56:08 +08:00
修复build action
This commit is contained in:
parent
a6c2a99c14
commit
177150cb75
11
.github/workflows/ build.yml
vendored
11
.github/workflows/ build.yml
vendored
|
@ -23,12 +23,11 @@ jobs:
|
|||
env:
|
||||
GITHUB_REPO: gitee.com/whyour/qinglong-static
|
||||
run: |
|
||||
git config --global user.email "imwhyour@gmail.com"
|
||||
git config --global user.name "whyour"
|
||||
git clone --depth 1 https://gitee.com/whyour/qinglong-static.git static
|
||||
mkdir -p static
|
||||
cd ./static
|
||||
rm -rf dist/* && rm -rf build/*
|
||||
cp -rf ../dist ./ && cp -rf ../build ./
|
||||
git add .
|
||||
git init && git add .
|
||||
git config user.name "whyour"
|
||||
git config user.email "imwhyour@gmail.com"
|
||||
git commit --allow-empty -m "copy static at $(date +'%Y-%m-%d %H:%M:%S')"
|
||||
git push --quiet "https://whyour:${{ secrets.API_TOKEN }}@${GITHUB_REPO}.git" master:master
|
||||
git push --force --quiet "https://whyour:${{ secrets.API_TOKEN }}@${GITHUB_REPO}.git" master
|
|
@ -166,7 +166,8 @@ update_repo() {
|
|||
local repo_path="${dir_repo}/${author}_${repo}"
|
||||
if [ -d ${repo_path}/.git ]; then
|
||||
reset_romote_url ${repo_path} ${url}
|
||||
git_pull_scripts ${repo_path}
|
||||
git fetch
|
||||
git reset --hard origin/master >/dev/null 2>&1
|
||||
else
|
||||
git_clone_scripts ${url} ${repo_path}
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user