Commit a19e32d3 authored by chenhe's avatar chenhe

fix git diff

parent c21a4e7f
......@@ -19,9 +19,10 @@ jobs:
env:
TARGET_REPO: 'https://github.com/langgenius/dify-docs.git'
TARGET_BRANCH: 'test-howto-sync'
SOURCE_REPO_MAIN: 'chore/test-howto-sync'
ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN_GU }}
run: |
CHANGED_FILES=$(git diff --name-only --diff-filter=AMDR origin/${{ github.event.pull_request.base.ref }} ${{ github.event.pull_request.head.ref }} | grep 'howto-.*\.md' || true)
CHANGED_FILES=$(git diff --name-only --diff-filter=AMDR ${SOURCE_REPO_MAIN} | grep 'howto-.*\.md' || true)
if [ -z "$CHANGED_FILES" ]; then
echo "No new how-to file changes to sync"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment