Skip to content

Commit a40df15

Browse files
author
Tomás Ciccola
committed
trigger flow from commit (once only)
1 parent 16ccfc9 commit a40df15

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/build.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Sync Notion Docs
22

33
on:
44
workflow_dispatch:
5+
push:
6+
branches:
7+
- feat/buildFlow
58

69
jobs:
710
pull-docs:
@@ -28,11 +31,11 @@ jobs:
2831
git add docs i18n
2932
3033
# Commit if there are changes
31-
git diff --cached --quiet || git commit -m "chore: update docs from Notion"
34+
git diff --cached --quiet || git commit -m "chore: update docs from Notion"
3235

33-
# Push back to the repository
34-
git push
35-
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
# Push back to the repository
37+
git push
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3740

3841

0 commit comments

Comments
 (0)