mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-29 17:17:26 -04:00
54 lines
1.8 KiB
YAML
54 lines
1.8 KiB
YAML
name: Sync Android App Documentation
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 * * 0" # Every Sunday at midnight UTC
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
sync:
|
|
runs-on: ubuntu-24.04
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
steps:
|
|
- name: Checkout meshtastic/meshtastic
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Clone meshtastic/Meshtastic-Android
|
|
run: |
|
|
git clone --depth=1 --branch main https://github.com/meshtastic/Meshtastic-Android.git /tmp/Meshtastic-Android
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version-file: ".nvmrc"
|
|
|
|
- name: Install cwebp
|
|
run: sudo apt-get update && sudo apt-get install -y webp
|
|
|
|
- name: Run sync script
|
|
run: node /tmp/Meshtastic-Android/scripts/sync-android-docs.js /tmp/Meshtastic-Android --convert-webp
|
|
|
|
- name: Create Pull Request
|
|
uses: peter-evans/create-pull-request@v8
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
commit-message: "docs: sync latest Android app documentation"
|
|
branch: sync/android-docs
|
|
delete-branch: true
|
|
title: "docs: sync latest Android app documentation"
|
|
body: |
|
|
This PR was automatically created by the [sync-android-docs](../.github/workflows/sync-android-docs.yml) workflow.
|
|
|
|
It synchronizes Markdown documentation and images from [meshtastic/Meshtastic-Android](https://github.com/meshtastic/Meshtastic-Android) into this repository:
|
|
|
|
- Markdown files → `docs/software/android/`
|
|
- Image files → `static/img/android/docs/`
|
|
|
|
Image paths in Markdown are rewritten to use the Docusaurus `/img/android/docs/` static path.
|
|
Screenshots are converted to WebP for optimal site performance.
|