-
-
Notifications
You must be signed in to change notification settings - Fork 175
74 lines (61 loc) · 2.87 KB
/
pull-from-armbian-config.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: "Pull from Armbian config"
on:
push:
branches:
- master
workflow_dispatch:
jobs:
Build:
name: "Pull"
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'armbian' }}
steps:
- name: Checkout main documentation
uses: actions/checkout@v4
with:
repository: 'armbian/documentation'
path: 'documentation'
- name: Checkout Armbian config repository
uses: actions/checkout@v4
with:
repository: 'armbian/configng'
path: 'config'
- name: Make docs
run: |
cd config
tools/config-assemble.sh -p
tools/config-markdown.py -u
# rsync images first
rsync -avr tools/include/images/. ../documentation/docs/images/
# this section goes under armbian-config
mkdir -p ../documentation/docs/User-Guide_Armbian-Config/
rsync -avr docs/Localisation/Localisation.user.md ../documentation/docs/User-Guide_Armbian-Config/Localisation.md
rsync -avr docs/Network/Network.user.md ../documentation/docs/User-Guide_Armbian-Config/Network.md
rsync -avr docs/System/System.user.md ../documentation/docs/User-Guide_Armbian-Config/System.md
# the rest goes under armbian-software
mkdir -p ../documentation/docs/User-Guide_Armbian-Software/
#rsync -avr --exclude="Software.user.md" --exclude="Benchy.user.md" docs/Software/* ../documentation/docs/User-Guide_Armbian-Software/
rsync -avr docs/Software/Containers.user.md ../documentation/docs/User-Guide_Armbian-Software/Containers.md
rsync -avr docs/Software/Desktops.user.md ../documentation/docs/User-Guide_Armbian-Software/Desktops.md
rsync -avr docs/Software/DevTools.user.md ../documentation/docs/User-Guide_Armbian-Software/DevTools.md
rsync -avr docs/Software/HomeAutomation.user.md ../documentation/docs/User-Guide_Armbian-Software/HomeAutomation.md
rsync -avr docs/Software/Management.user.md ../documentation/docs/User-Guide_Armbian-Software/Management.md
rsync -avr docs/Software/Media.user.md ../documentation/docs/User-Guide_Armbian-Software/Media.md
rsync -avr docs/Software/Netconfig.user.md ../documentation/docs/User-Guide_Armbian-Software/Netconfig.md
- name: Create Pull Request to documentation
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
path: documentation
commit-message: '`Automatic` documentation update'
signoff: false
branch: auto-update-docs
delete-branch: true
title: '`Automatic` documentation update'
body: |
Generate documentation.
labels: |
Needs review
#assignees: igorpecovnik
#reviewers: Must be org collaborator
draft: false