mizuka-wu / gitee-pages-action

Auto reload gitee pages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gitee-pages-action

触发后模拟登录然后触发接口

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

获取cookie

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

参考

添加 cookie

How to add Cookie

setting中点击secrets,新建GITEE_COOKIE,将上面获取到的cookie值存入其中。

in setting Menu, click secrets button,add GITEE_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

About

Auto reload gitee pages

License:MIT License


Languages

Language:JavaScript 100.0%