-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.02 KB
/
retrieve_writefreely.yaml
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: "[writefreely] retrieve notes"
on:
workflow_dispatch:
repository_dispatch:
types:
- new_note
jobs:
retrieve_notes:
runs-on: "ubuntu-latest"
permissions:
contents: write
strategy:
max-parallel: 1
matrix:
collections:
- tk
- offload
- weeknotes
steps:
- uses: "actions/checkout@v4"
- uses: "actions/setup-python@v2"
with:
python-version: "3.9"
- name: "go to `./scripts`"
run: |
cd scripts
- name: "install dependencies"
run: |
pip install -r scripts/requirements.txt
- name: "retrieve from `write.apresalnu.it`"
run: |
cd scripts && python import_wf_${{ matrix.collections }}.py
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "🤖 ajoute les notes importées `write.apreslanu.it/${{ matrix.collections }}`"
file_pattern: "content/write.apreslanu.it/${{ matrix.collections }}/*.md"