Skip to content

Commit dff132a

Browse files
Update compare.yml
1 parent 1062493 commit dff132a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/compare.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ jobs:
3333
FORK_BRANCH="main"
3434
FORK_OWNER=${{ env.fork_owner }}
3535
FORK_REPO=${{ env.fork_repo }}
36-
git fetch https://github.com/$FORK_OWNER/$FORK_REPO $FORK_BRANCH
37-
CHANGES=$(git diff $BASE_BRANCH...FETCH_HEAD --name-only)
36+
git remote add fork https://github.com/$FORK_OWNER/$FORK_REPO.git
37+
git fetch fork $FORK_BRANCH
38+
CHANGES=$(git diff $BASE_BRANCH...fork/$FORK_BRANCH --name-only)
3839
echo "changes=$CHANGES" >> $GITHUB_ENV
3940
4041
- name: Generate document using AI

0 commit comments

Comments
 (0)