Auto reload gitee pages
example
jobs:
reload-pages:
runs-on: ubuntu-latest
steps:
- name: reload
uses: mizuka-wu/gitee-pages-action@v1.0.0
with:
repository: your_github_name/repository_name
cookie: ${{ secrets.GITEE_COOKIE }}
branch: master
directory: src
https: true
step_1 | step_2 | step_3 |
---|---|---|
进入gitee pages服务管理页,点击更新 | 打开devTools,在network中查看rebuild请求的标头 | 复制请求标头中的cookie值 |
Go to the Gitee Pages service management page and click Update | Open devTools and look at the headers for rebuild requests in the network | Copy the cookie value in the request header |
How to add Cookie
在setting
中点击secrets
,新建GITEE_COOKIE
,将上面获取到的cookie值存入其中。
in
setting
Menu, clicksecrets
button,addGITEE_COOKIE
uses
参数和 gitee 刷新页面一一对应
this attributes is One-to-one correspondence to the refresh page
参数名/input | 必填/isrequired | 默认值/default value | 参考/example |
---|---|---|---|
repository | 是/yes | null | mizuka-wu/mizuka-wu.github.io |
cookie | 是/yes | null | Hm_lpvt_24f17767262929947cc3631f99bfd274=1582869665; |
branch | 否/false | master | master |
directory | 否/false | src | |
https | 否/false | true | true |