修改static仓储到github

This commit is contained in:
hanhh 2021-05-20 17:49:54 +08:00
parent 95f8e9953a
commit 65bc4c40e9
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,8 @@ jobs:
- name: copy to static repo
env:
GITHUB_REPO: gitee.com/whyour/qinglong-static
# GITHUB_REPO: gitee.com/whyour/qinglong-static
GITHUB_REPO: github.com/whyour/qinglong-static
run: |
mkdir -p static
cd ./static
@ -29,6 +30,5 @@ jobs:
git init && git add .
git config user.name "whyour"
git config user.email "imwhyour@gmail.com"
git config http.postBuffer 524288000
git commit --allow-empty -m "copy static at $(date +'%Y-%m-%d %H:%M:%S')"
git push --force --quiet "https://whyour:${{ secrets.API_TOKEN }}@${GITHUB_REPO}.git" master:master

View File

@ -261,7 +261,7 @@ update_qinglong() {
echo -e "\n更新$dir_root失败,请检查原因...\n"
fi
local url="https://gitee.com/whyour/qinglong-static.git"
local url="https://ghproxy.com/https://github.com/whyour/qinglong-static.git"
if [ -d ${ql_static_repo}/.git ]; then
reset_romote_url ${ql_static_repo} ${url}
git_pull_scripts ${ql_static_repo}