2 Star 79 Fork 12

ylb/gitee-pages-action

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test.py 622 Bytes
一键复制 编辑 原始数据 按行查看 历史
ylb 提交于 2021-11-28 11:44 +08:00 . chore: update test case
import os
from actions_toolkit import core
from app import log
from app.action import Action
os.environ['INPUT_GITEE-USERNAME'] = 'yanglbme'
os.environ['INPUT_GITEE-PASSWORD'] = '***'
os.environ['INPUT_GITEE-REPO'] = 'yanglbme/reading'
os.environ['INPUT_BRANCH'] = 'main'
try:
username = core.get_input('gitee-username', required=True)
password = core.get_input('gitee-password', required=True)
repo = core.get_input('gitee-repo', required=True)
branch = core.get_input('branch')
action = Action(username, password, repo, branch)
action.run()
except Exception as e:
log.set_failed(str(e))
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/yanglbme/gitee-pages-action.git
git@gitee.com:yanglbme/gitee-pages-action.git
yanglbme
gitee-pages-action
gitee-pages-action
main

搜索帮助