-
Notifications
You must be signed in to change notification settings - Fork 32
40 lines (29 loc) · 938 Bytes
/
update_manual.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
name: Update Audacity Manual
on:
workflow_dispatch:
env:
MW2HTML_USER: ${{ secrets.MW2HTML_USER }}
MW2HTML_PASSWORD: ${{ secrets.MW2HTML_PASSWORD }}
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Donwload
run: |
pushd scripts/mw2html_audacity
python3 mw2html.py -s https://alphamanual.audacityteam.org/man ./
popd
rm -R manual
mkdir manual
cp -R scripts/mw2html_audacity/alphamanual.audacityteam.org/* manual/
rm -R scripts/mw2html_audacity/alphamanual.audacityteam.org
- name: Push
run: |
git config --global user.name 'Github Worflow'
git config --global user.email '[email protected]'
git status
git add *
git commit -m "Manual update $(date +%Y-%m-%d-%H-%M-%S)"
git push