.github/workflows/main.yml #908
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Daily Notification | |
on: | |
schedule: | |
- cron: '45 2,5,10 * * *' # UTC时间执行,定时时间加8为运行时间 | |
workflow_dispatch: # 允许手动触发 | |
jobs: | |
run-script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Bash | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '14' | |
- name: Execute pushplus | |
env: | |
PUSHPLUS_TOKEN: ${{ secrets.PUSHPLUS_TOKEN }} | |
run: bash pushplus.sh | |
# - name: Execute xizhi.sh | |
# env: | |
# XIZHI_TOKEN: ${{ secrets.XIZHI_TOKEN }} | |
# run: bash xizhi.sh | |
# - name: Execute wxpusher.sh | |
# env: | |
# WXPUSHER_TOKEN: ${{ secrets.WXPUSHER_TOKEN }} | |
# run: bash WxPusher.sh | |
#另加脚本和环境变量 | |
#on: | |
# schedule: | |
# - cron: '25 12,13,15 * * *' # 时间执行 | |
# workflow_dispatch: # 允许手动触发 | |
# inputs: | |
# manual_trigger: | |
# description: '手动触发工作流' | |
# required: false | |
# | |
# push: | |
# paths: | |
# - '.github/workflows/main.yml' # 当 main.yml 文件发生变化时触发 |