Skip to content

Commit

Permalink
test env
Browse files Browse the repository at this point in the history
  • Loading branch information
Long0x0 committed May 7, 2021
1 parent 9776062 commit f4909ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ runs:
steps:
- name: Test python
env:
ACCOUNT: ${{ inputs.account }}
PASSWORD: ${{ inputs.password }}
INPUT_TOKEN: ${{ inputs.token }}
run: |
pip install -r ${{ github.action_path }}/src/requirements.txt
python ${{ github.action_path }}/src/test.py
Expand Down
4 changes: 4 additions & 0 deletions src/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@
print('account get.')
if os.getenv('PASSWORD'):
print('password get.')
if os.getenv('token'):
print('token get.')
if os.getenv('INPUT_ACCOUNT'):
print('input account get.')
if os.getenv('INPUT_PASSWORD'):
print('input password get.')
if os.getenv('INPUT_TOKEN'):
print('input token get.')
token = os.environ['INPUT_TOKEN']
if token:
send_message.send_serverChan_message('test', 'test ok.', token)
Expand Down

0 comments on commit f4909ed

Please sign in to comment.