Skip to content

Commit a282020

Browse files
committed
Remove --force from GitLab mirror push
Avoid force-pushing when mirroring branches to GitLab to prevent accidentally overwriting commits.
1 parent 1f9dc9d commit a282020

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/mirror-to-gitlab.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ jobs:
3232
# Push the current branch
3333
BRANCH_NAME="${GITHUB_REF#refs/heads/}"
3434
echo "Pushing branch: ${BRANCH_NAME}"
35-
git push gitlab "HEAD:refs/heads/${BRANCH_NAME}" --force
35+
git push gitlab "HEAD:refs/heads/${BRANCH_NAME}"
3636
3737
echo "Successfully mirrored to GitLab"

0 commit comments

Comments
 (0)