From b79effa11440e521aba6e5aa585d44807e37a6e5 Mon Sep 17 00:00:00 2001 From: 332142558 <58900903+332142558@users.noreply.github.com> Date: Thu, 21 Dec 2023 11:10:39 +0800 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9737d98 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,18 @@ +name: 'GitHub Actions wakeup Bot' + +on: + push: + schedule: + - cron: '0 0,8,12,21,23 * * *' + +jobs: + bot: + runs-on: ubuntu-latest + steps: + - name: 'Checkout codes' + uses: actions/checkout@v1 + - name: 'Get Wakeup' + run: bash ./wakeup.sh + - name: 'Get Date' + run: echo "REPORT_DATE=$(TZ=':Asia/Shanghai' date '+%Y-%m-%d %T')" >> $GITHUB_ENV +