Skip to content

中青看点_sunert #105918

中青看点_sunert

中青看点_sunert #105918

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: 中青看点_sunert
on:
workflow_dispatch:
schedule:
- cron: '*/12 * * * *'
watch:
types: started
jobs:
build:
runs-on: ubuntu-latest
## if: github.event.repository.owner.id == github.event.sender.id
env:
YOUTH_HEADER: ${{ secrets.YOUTH_HEADER }}
YOUTH_ARTBODY: ${{ secrets.YOUTH_ARTBODY }}
YOUTH_REDBODY: ${{ secrets.YOUTH_REDBODY }}
YOUTH_TIME: ${{ secrets.YOUTH_TIME }}
steps:
- name: Checkout
run: |
git clone https://github.com/guakeliao/garbageCollection.git ~/Scripts
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: npm install
if: env.YOUTH_HEADER
run: |
cd ~/Scripts
npm install
- name: '运行 【中青看点】'
if: env.YOUTH_HEADER
run: |
cd ~/Scripts
node js/youth/sunert_youth.js
env:
YOUTH_NOTIFY_CONTROL: ${{ secrets.YOUTH_NOTIFY_CONTROL }}
PUSH_KEY: ${{ secrets.PUSH_KEY }}
BARK_PUSH: ${{ secrets.BARK_PUSH }}
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
TG_USER_ID: ${{ secrets.TG_USER_ID }}
BARK_SOUND: ${{ secrets.BARK_SOUND }}
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}