I synced with FORK parameter referring to Fork and pull request workflow.
The action could successfully create the first pull request targeting to the target repo through forked repo. Once the first pull request is merged, when I push some change to the sync file next time in source repo the action run failed due to shallow update not allowed error, like https://github.com/GangWang01/Experiment/actions/runs/3443890910.
The error is a result of main branch of forked repo is some commits behind target repo. To work around this problem, I have to manually sync forked repo from its upstream(the target repo). However it doesn't make sense for the purpose of this action.
BTW, ORIGINAL_MESSAGE and COMMIT_AS_PR_TITLE don't work when syncing file through forked repo.
π To reproduce
https://github.com/GangWang01/Experiment is the source repo and it's configured to use this action with FORK parameter. This is my own repo I have write access.
π Describe the bug
I synced with
FORK
parameter referring to Fork and pull request workflow. The action could successfully create the first pull request targeting to the target repo through forked repo. Once the first pull request is merged, when I push some change to the sync file next time in source repo the action run failed due toshallow update not allowed
error, like https://github.com/GangWang01/Experiment/actions/runs/3443890910. The error is a result of main branch of forked repo is some commits behind target repo. To work around this problem, I have to manually sync forked repo from its upstream(the target repo). However it doesn't make sense for the purpose of this action.BTW,
ORIGINAL_MESSAGE
andCOMMIT_AS_PR_TITLE
don't work when syncing file through forked repo.π To reproduce
FORK
parameter. This is my own repo I have write access.π‘ Expected behavior
It's very helpful syncing through forked repo could work well.
πΌοΈ Screenshots
No response
βοΈ Environment
Neither
BetaHuhn/repo-file-sync-action@v1
norBetaHuhn/repo-file-sync-action@latest
works.π Additional context
No response