-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (44 loc) · 1.31 KB
/
fetch_data.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: Fetch Data
on:
schedule:
- cron: '40 * * * *' # every hour
push:
paths:
- '.github/workflows/fetch_data.yml'
workflow_dispatch: {}
jobs:
fetch_data:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Fetch talk/speaker/etc. data from Pretalx
- name: Cache Julia Packages
uses: actions/cache@v2
env:
cache-name: cache-julia-pkgs
with:
path: ~/.julia
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Update Data
run: |
cd data
julia --project -e 'import Pkg; Pkg.instantiate(); include("fetch.jl");'
cd ..
env:
PRETALX_TOKEN: ${{ secrets.PRETALX_TOKEN }}
- name: Update Video Data
run: |
cd data
julia --project -e 'import Pkg; Pkg.instantiate(); include("fetch_videos.jl");'
cd ..
env:
AIRTABLE_KEY: ${{ secrets.AIRTABLE_KEY }}
# Commit all the changes
- name: Commit and Push
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: fetch data