-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update armbian-configng script and remove manual_generation.md
- Loading branch information
GitHub Actions
committed
Jan 10, 2024
1 parent
1ce0f70
commit fa14f40
Showing
3 changed files
with
143 additions
and
6 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,41 @@ | ||
name: Generate Man Pages | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'share/doc/armbian-configng/*.1.md' | ||
|
||
jobs: | ||
man-page-gen: | ||
name: Generate Man Pages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Pandoc | ||
run: sudo apt-get install -y pandoc | ||
|
||
- name: Check Pandoc Version | ||
run: pandoc --version | ||
|
||
- name: Convert Markdown to Man Pages | ||
run: | | ||
for file in share/doc/armbian-configng/*.1.md; do | ||
pandoc -s -t man $file -o ${file%.md} | ||
gzip ${file%.md} | ||
done | ||
- name: Move Man Pages | ||
run: | | ||
mkdir -p share/man/man1 | ||
mv share/doc/armbian-configng/*.1.gz share/man/man1/ | ||
- name: Commit and Push Changes | ||
run: | | ||
git config --global user.name 'GitHub Actions' | ||
git config --global user.email '[email protected]' | ||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} | ||
git add -A | ||
git commit -m "Generated man pages" || echo "No changes to commit" | ||
git push origin HEAD:${{ github.ref }} |
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
File renamed without changes.