-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (36 loc) · 1.15 KB
/
trustlist-CH.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
name: Renew Trustlist CH
on:
schedule:
- cron: '50 3,13 * * *'
push:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout ch-dcc-keys tools repo
uses: actions/checkout@v2
with:
# TODO: switch back to cn-uofbasel/ch-dcc-keys once
# https://github.com/cn-uofbasel/ch-dcc-keys/pull/1 is merged
repository: stapelberg/ch-dcc-keys
path: ch-dcc-keys
- name: Install Python packages
run: pip install python-jose cryptography==3.4
- name: Download keys
run: |
cd ch-dcc-keys && \
rm -f data/CH-*.jwt && \
./CH-fetch_keys.sh && \
./CH-jwt2json.py data/CH-root.crt \
data/CH-*-updates.jwt \
data/CH-*-keylist.jwt \
> ../trustlist_ch.json
- name: minify json
run: python scripts/minify.py trustlist_ch.json
- uses: EndBug/add-and-commit@v7
with:
author_name: github action download trustlist
message: 'Update Trustlist CH'
add: 'trustlist_ch.*json'