-
-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GH action to pull from armbian-config automatically
- Loading branch information
1 parent
04ff9b5
commit d98919d
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: "Pull from Armbian config" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
Build: | ||
name: "Pull" | ||
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 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 |