-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 796 Bytes
/
main.yml
File metadata and controls
34 lines (28 loc) · 796 Bytes
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
name: Update data
on:
push:
# schedule:
# - cron: "0 * * * *"
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
dir
python -m pip install --upgrade pip
pip install -e .
python update_data.py
dir
- uses: stefanzweifel/git-auto-commit-action@v4
- name: Trigger news site re-build
run: |
curl -X POST https://api.github.com/repos/OSUKED/Energy-News-Site/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.TOKEN }} \
--data '{"event_type": "new articles incoming"}'