Skip to content

Sync Yandex Markdown #343

Sync Yandex Markdown

Sync Yandex Markdown #343

Workflow file for this run

name: Sync Yandex Markdown
on:
workflow_dispatch:
schedule:
# 20:20 MSK (UTC+3) -> 17:20 UTC
- cron: '25 17 * * *'
permissions:
contents: write
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --no-progress
- name: Run tests
run: bun test
- name: Sync Yandex public file
env:
YADISK_URL: https://disk.yandex.ru/d/N2xaJZWo-hhFYw
run: bun run sync:yadisk
- name: Commit changes
run: |
if [[ -n "$(git status --porcelain)" ]]; then
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "chore(docs): sync Yandex markdown"
git push
else
echo "No changes to commit."
fi