1- name : Update Next.js English Documentation
1+ name : Sync Next.js Official Documentation
22
33on :
44 workflow_dispatch : # Manual trigger
@@ -57,12 +57,20 @@ jobs:
5757 rsync -av --delete nextjs-v13/docs/ apps/docs/content/en/docs/13/
5858 rm -rf nextjs-v13
5959
60+ - name : Setup Tools
61+ uses : ./.github/actions/setup
62+
63+ - name : Sync blog & learn
64+ if : steps.check_branch.outputs.branch_exists == 'false'
65+ run : |
66+ node packages/crawler/dist/index.js
67+
6068 - name : Find available translation locales
6169 if : steps.check_branch.outputs.branch_exists == 'false'
6270 id : find_locales
6371 run : |
6472 cd apps/docs/content
65- LOCALES=$(find . -maxdepth 1 -type d | grep -v "^.$" | grep -v "/en$" | sed 's|^\./||')
73+ LOCALES=$(find . -maxdepth 1 -type d | grep -v "^.$" | grep -v "/en$" | sed 's|^\./||' | tr '\n' ' ' | sed 's/ $//' )
6674 echo "Available translation locales: $LOCALES"
6775 echo "locales=$LOCALES" >> $GITHUB_OUTPUT
6876
@@ -79,10 +87,10 @@ jobs:
7987 if : steps.check_branch.outputs.branch_exists == 'false'
8088 run : |
8189 # Get list of renamed files from git status
82- RENAMES=$(git status --porcelain | grep -E "^R[[:space:]]+apps/docs/content/en/docs " | sed 's/^R[[:space:]]*//')
90+ RENAMES=$(git status --porcelain | grep -E "^R[[:space:]]+apps/docs/content/en" | sed 's/^R[[:space:]]*//')
8391
8492 # Get list of deleted files from git status
85- DELETES=$(git status --porcelain | grep -E "^D[[:space:]]+apps/docs/content/en/docs " | sed 's/^D[[:space:]]*//')
93+ DELETES=$(git status --porcelain | grep -E "^D[[:space:]]+apps/docs/content/en" | sed 's/^D[[:space:]]*//')
8694
8795 # Generate current timestamp in ISO format
8896 CURRENT_TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%S.000Z")
0 commit comments