Skip to content

Commit

Permalink
chore: update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme committed Nov 28, 2021
1 parent 5a7b8b0 commit 44ea6ce
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,21 @@

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'

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')
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()
action = Action(username, password, repo, branch)
action.run()
except Exception as e:
log.set_failed(str(e))

0 comments on commit 44ea6ce

Please sign in to comment.