Skip to content

Blog Localization

Blog Localization #549

name: Blog Localization
on:
# allows to manually run the job at any time
workflow_dispatch:
# # run on every push on the release branch
# push:
# branches: [production, staging, master, refactor/**]
permissions:
contents: write
pull-requests: write
jobs:
sync-blog:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
- run: yarn install
- name: "Run sync command"
run: yarn sync-blog
- name: "Commit sync contents"
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "[GitHub Action] Sync blog contents from AFFiNE Cloud"
file_pattern: 'content/blog/*.json'