Commit a85a4bc5 authored by Nairong Xie's avatar Nairong Xie
Browse files

add action script

parent bbf76995
......@@ -30,8 +30,7 @@ jobs:
id: run_scheduled
if: ${{ github.event_name == 'schedule' }}
run: |
echo -ne "::set-output name=message::"
python checkin.py
bash run.sh
env:
NJU_USER: ${{ secrets.NJU_USER }}
NJU_PASS: ${{ secrets.NJU_PASS }}
......@@ -40,8 +39,7 @@ jobs:
id: run_manually
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
echo -ne "::set-output name=message::"
python checkin.py
bash run.sh
env:
NJU_USER: ${{ github.event.inputs.user }}
NJU_PASS: ${{ github.event.inputs.pass }}
......
#!/bin/bash
RESULT=$(python checkin.py)
echo "$RESULT"
# for telegram message
echo "::set-output name=message::${RESULT}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment