Files
microdao-daarion/.github/workflows/update-docs.yml
Apple 3de3c8cb36 feat: Add presence heartbeat for Matrix online status
- matrix-gateway: POST /internal/matrix/presence/online endpoint
- usePresenceHeartbeat hook with activity tracking
- Auto away after 5 min inactivity
- Offline on page close/visibility change
- Integrated in MatrixChatRoom component
2025-11-27 00:19:40 -08:00

56 lines
1.5 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Update Documentation
on:
push:
branches:
- main
paths:
- '.git/config'
- 'scripts/update_repos_info.py'
workflow_dispatch: # Дозволити ручний запуск
schedule:
# Запускати щотижня в понеділок о 9:00 UTC
- cron: '0 9 * * 1'
jobs:
update-repos-info:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0 # Потрібна повна історія для git remote
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Update repositories info
run: |
python scripts/update_repos_info.py
- name: Check for changes
id: verify-changed-files
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "changed=true" >> $GITHUB_OUTPUT
else
echo "changed=false" >> $GITHUB_OUTPUT
fi
- name: Commit changes
if: steps.verify-changed-files.outputs.changed == 'true'
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add INFRASTRUCTURE.md docs/infrastructure_quick_ref.ipynb
git commit -m "docs: auto-update repository information [skip ci]"
git push