-
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.63 KB
/
sync-docs.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
44
45
46
47
48
49
50
51
52
53
name: Sync Helm Chart Docs to Homarr documentation Repo
on:
push:
branches:
- dev
jobs:
sync-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout helm chart Repo
uses: actions/checkout@v4
with:
sparse-checkout: |
charts/homarr/README.md
sparse-checkout-cone-mode: false
- name: Checkout Homarr documentation Repo
uses: actions/checkout@v4
with:
repository: homarr-labs/documentation
path: target-repo
token: ${{ secrets.GITHUB_TOKEN }}
# TODO: Change to the main branch on stable release
ref: docs/version-1.0
- name: Sync Documentation
run: |
cp charts/homarr/README.md target-repo/docs/getting-started/installation/helm.md
cd target-repo
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "docs(helm): Update Helm chart documentation" || echo "No changes to commit"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-helm-docs
# TODO: Change to the main branch on stable release
base: docs/version-1.0
title: Update Helm chart documentation
delete-branch: true
path: target-repo
team-reviewers: homarr-labs/maintainers
body: |
This PR updates the documentation file to match the latest Helm chart changes.
labels: |
helm
docs