Skip to content

trigger flow from commit (once only) #1

trigger flow from commit (once only)

trigger flow from commit (once only) #1

Workflow file for this run

name: Sync Notion Docs
on:
workflow_dispatch:
push:
branches:
- feat/buildFlow
jobs:
pull-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun i
- name: Notion To Markdown
run: bun notionToMd
- name: Commit generated docs
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
# Stage specific paths (adjust to your generated files)
git add docs i18n
# Commit if there are changes
git diff --cached --quiet || git commit -m "chore: update docs from Notion"
# Push back to the repository
git push

Check failure on line 37 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yaml

Invalid workflow file

You have an error in your yaml syntax on line 37
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}