Add JSON generation to the docs generation #78
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Regenerate docs and JSON" | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
Build: | |
name: "Make docs and main JSON file" | |
runs-on: ubuntu-latest | |
if: ${{ github.repository_owner == 'armbian' }} | |
steps: | |
- name: Checkout build repo | |
uses: actions/checkout@v4 | |
- name: Make docs | |
run: | | |
bin/armbian-config --doc | |
- name: Join JSON | |
run: | | |
tools/config-jobs -j lib/armbian-configng/config.ng.jobs.json | |
- name: Create Pull Request | |
id: cpr | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: '`Automatic` documentation update' | |
signoff: false | |
branch: update-docs | |
delete-branch: true | |
title: '`Automatic` documentation update and JSON join' | |
body: | | |
Generate: | |
- [DOCUMENTATION.md](${{ github.event.repository.html_url }}/blob/main/DOCUMENTATION.md) | |
- Join [JSON parts](${{ github.event.repository.html_url }}/tree/main/tools/json/) to [common runtime JSON file](${{ github.event.repository.html_url }}/blob/main/lib/armbian-configng/config.ng.jobs.json) | |
labels: | | |
Needs review | |
#assignees: igorpecovnik | |
#reviewers: Must be org collaborator | |
draft: false | |