mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-06-26 14:35:37 -04:00
ci: fix Android docs sync (remove stray workflow, prune stale pages) (#5955)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
53
.github/workflows/sync-android-docs.yml
vendored
53
.github/workflows/sync-android-docs.yml
vendored
@@ -1,53 +0,0 @@
|
||||
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@v7.0.0
|
||||
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.
|
||||
Reference in New Issue
Block a user