代码拉取完成,页面将自动刷新
from actions_toolkit import core
from app import log
from app.action import Action
author = {
'name': 'Yang Libin',
'link': 'https://github.com/yanglbme'
}
marketplace = 'https://github.com/marketplace/actions/gitee-pages-action'
log.info(f'Welcome to use Gitee Pages Action ❤\n\n'
f'📕 Getting Started Guide: {marketplace}\n'
f'📣 Maintained by {author["name"]}: {author["link"]}\n')
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')
directory = core.get_input('directory')
https = core.get_input('https')
action = Action(username, password, repo, branch, directory, https)
action.login()
log.info('Login successfully')
action.rebuild_pages()
log.info('Rebuild Gitee Pages successfully')
log.info('Success, thanks for using @yanglbme/gitee-pages-action!')
except Exception as e:
log.set_failed(str(e))
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。