-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
49 lines (45 loc) · 1.13 KB
/
updateInfo.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
40
41
42
43
44
45
46
47
48
49
name: Update readme and feed.opml
on:
workflow_dispatch:
push:
paths:
- 'blogs-original.csv'
- 'formatter.py'
- 'opml_generator.py'
- 'script.js'
- '.github/workflows/updateInfo.yml'
schedule:
- cron: '0 0 * * MON'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v3.2.0
with:
node-version: 16.x
- name: Set up Python 3.7
uses: actions/setup-python@v3.1.2
with:
python-version: 3.7
- name: formatter
run: |
python formatter.py
- name: update readme
run: |
npm install
node script.js
- name: Generate feed.opml
run: |
python opml_generator.py
- name: Commit files
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "update README and feed.opml after adding blog(s)"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}