-
Notifications
You must be signed in to change notification settings - Fork 8
59 lines (57 loc) · 1.5 KB
/
updateFL.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
50
51
52
53
54
55
56
57
58
59
name: Aktualizacja listy
on:
workflow_dispatch: null
schedule:
- cron: "0 8,12,16,20 * * *"
jobs:
CERT:
runs-on: ubuntu-latest
container: ghcr.io/filtersheroes/kad_image:3.0.9
steps:
- uses: actions/checkout@v3
- name: Dodawanie nowości z CERT
env:
SKIP_OFFLINE: true
run: |
./scripts/addNoveltiesFrom3p.py CERT
- uses: actions/upload-artifact@v3
with:
name: CERT
path: |
sections/CERT_novelties.txt
LWS:
runs-on: ubuntu-latest
container: ghcr.io/filtersheroes/kad_image:3.0.9
steps:
- uses: actions/checkout@v3
- name: Dodawanie nowości z LWS
run: |
./scripts/addNoveltiesFrom3p.py LWS
- uses: actions/upload-artifact@v3
with:
name: LWS
path: sections/LWS_novelties.txt
Aktualizacja:
needs: [CERT, LWS]
runs-on: ubuntu-latest
permissions:
contents: write
container: ghcr.io/filtersheroes/kad_image:3.0.9
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/download-artifact@v3
with:
name: CERT
path: sections
- uses: actions/download-artifact@v3
with:
name: LWS
path: sections
- name: Aktualizacja całej listy
env:
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
python3 ./scripts/build.py