Skip to content

Commit

Permalink
文档同步测试
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed Jan 16, 2022
1 parent 6b3dee9 commit c1befbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/doc-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
paths:
- 'doc/**'

env:
TOKEN: ${{ secrets.TOKEN }}

jobs:
sync:

Expand Down
4 changes: 2 additions & 2 deletions doc-repo-push.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author : HCLonely
* @Date : 2022-01-16 17:31:53
* @LastEditTime : 2022-01-16 18:30:50
* @LastEditTime : 2022-01-16 18:52:25
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/doc-repo-push.js
* @Description : 同步auto-task-doc仓库
Expand All @@ -22,7 +22,7 @@ git('config', '--global', 'init.defaultBranch', 'gh-pages');
git('config', '--global', 'user.name', 'HCLonely');
git('config', '--global', 'user.email', '[email protected]');
git('init');
git('remote', 'add', 'origin', 'https://github.com/HCLonely/auto-task-doc');
git('remote', 'add', 'origin', `https://${process.env.TOKEN}@github.com/HCLonely/auto-task-doc`);
git('add', '-A');
git('commit', '-m', `Update at ${dayjs().format('YYYY-MM-DD HH:mm:ss')}`);
git('push', 'origin', 'gh-pages', '--force');

1 comment on commit c1befbb

@vercel
Copy link

@vercel vercel bot commented on c1befbb Jan 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.