测试git push

This commit is contained in:
whyour 2021-05-15 01:28:28 +08:00
parent 09ab572d79
commit 3574f69723
2 changed files with 7 additions and 3 deletions

View File

@ -31,4 +31,4 @@ jobs:
git config user.email "imwhyour@gmail.com"
git add .
git commit -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
git push --quiet "https://whyour:${{ secrets.API_TOKEN }}@${GITHUB_REPO}.git" master:master

View File

@ -44,8 +44,12 @@ const CronLogModal = ({
getCronLog();
}, 2000);
}
if (log && log.includes('重启面板')) {
message.warning({ content: '系统将在5秒后刷新', duration: 5 });
if (
log &&
log.includes('重启面板') &&
cron.status === CrontabStatus.running
) {
message.warning({ content: '系统将在5秒后自动刷新', duration: 5 });
setTimeout(() => {
window.location.reload();
}, 5000);