Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend docs generation to automatically make PR to main docs #175

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 35 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,33 @@ jobs:
#if: ${{ github.repository_owner == 'armbian' }}
steps:

- name: Checkout build repo
- 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
bin/armbian-configng --doc
cp DOCUMENTATION.md ../documentation/docs/User-Guide_Armbian-Config.md

- name: Create Pull Request
id: cpr
- name: Create Pull Request to armbian config
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
path: config
commit-message: '`Automatic` documentation update'
signoff: false
branch: update-docs
branch: auto-update-docs
delete-branch: true
title: '`Automatic` documentation update'
body: |
Expand All @@ -39,3 +52,21 @@ jobs:
#reviewers: Must be org collaborator
draft: false

- 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
Loading