Skip to content

Commit

Permalink
fix: 处理action error
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiu-Jun committed Apr 7, 2023
1 parent 79c05e6 commit 10ee0d1
Showing 1 changed file with 22 additions and 27 deletions.
49 changes: 22 additions & 27 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,27 @@
name: Timer

on:
schedule:
- cron: '0 0 8 ? * ?'
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
growth:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '16.14.2'

- name: Depend install and serve
env:
WXAPPID: ${{ secrets.WXAPPID }}
WXSECRET: ${{ secrets.WXSECRET }}
WXTOKEN: ${{ secrets.token }}
TEMPLATEID: ${{ secrets.TEMPLATEID }}
TIANXINGKEY: ${{ secrets.TIANXINGKEY }}
AMAPKEY: ${{ secrets.AMAPKEY }}
run: |
npm install
npm run ac

- name: Handle Shell
run: curl -X POST http://127.0.0.1:7001/sendNotify

deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '16.14.0'
- name: Depend install and serve
env:
WXAPPID: ${{ secrets.WXAPPID }}
WXSECRET: ${{ secrets.WXSECRET }}
WXTOKEN: ${{ secrets.token }}
TEMPLATEID: ${{ secrets.TEMPLATEID }}
TIANXINGKEY: ${{ secrets.TIANXINGKEY }}
AMAPKEY: ${{ secrets.AMAPKEY }}
run: |
npm install
npm run ac

0 comments on commit 10ee0d1

Please sign in to comment.