Skip to content

Regenerate docs and JSON #54

Regenerate docs and JSON

Regenerate docs and JSON #54

Workflow file for this run

name: "Regenerate documentation"
on:
push:
branches:
- main
workflow_dispatch:
jobs:
Build:
name: Make docs
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
bin/armbian-configng --doc
cp DOCUMENTATION.md ../documentation/docs/User-Guide_Armbian-Config.md
- name: Create Pull Request to armbian config
id: cpr
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
path: config
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
- name: Create Pull Request to documentation
id: cpr

Check failure on line 57 in .github/workflows/docs.yml

View workflow run for this annotation

GitHub Actions / Regenerate documentation

Invalid workflow file

The workflow is not valid. .github/workflows/docs.yml (Line: 57, Col: 13): The identifier 'cpr' may not be used more than once within the same scope.
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