From db6cf40dbbeea75d931c36b9fed6c079f7085166 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Sat, 12 Oct 2024 14:59:52 +0200 Subject: [PATCH] Extend docs generation to automatically make PR to main docs --- .github/workflows/docs.yml | 39 ++++++++++++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ad7bed6f8..b9c7ed1d0 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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: | @@ -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 \ No newline at end of file