-
Notifications
You must be signed in to change notification settings - Fork 25
40 lines (37 loc) · 928 Bytes
/
rssbot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 钉钉 rss 推送机器人
name: DingDingRssBot
on:
schedule:
- cron: '0 0/1 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 'Checkout codes'
uses: actions/checkout@v2
- name: Set up Python Version
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
cd robot
pip install -r requirements.txt
- name: send rss
env:
DD_WEBHOOK: ${{ secrets.webhook }}
DD_SECRET: ${{ secrets.secret }}
run: |
cd robot
python rss.py
- name: Commit
run: |
git config --global user.email [email protected]
git config --global user.name lt94
git add .
git commit -m "update" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: main
github_token: ${{ secrets.TOKEN }}