-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (36 loc) · 1.05 KB
/
blogs.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
name: Update Blogs
on:
issues:
types: [opened]
schedule:
- cron: "0 0 * * *"
jobs:
build:
runs-on: ubuntu-latest
if: |
startsWith(github.event.issue.title, 'blog|')
|| github.event_name == 'schedule'
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- uses: actions/cache@v2
name: Configure pip caching
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python dependencies
run: |
python -m pip install -r blog/requirements.txt
- name: Running Main File
env:
REPO: ${{github.repository}}
ISSUE_NUMBER: ${{github.event.issue.number}}
TOKEN: ${{github.token}}
TYPE: ${{github.event_name}}
run: python blog/updateBlog.py