Skip to content

Commit 2ffc2a9

Browse files
authored
Fix pushing
1 parent 90b5d90 commit 2ffc2a9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/Sync.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ jobs:
4646
git commit -m "Sync from Codeberg: update $file" || echo "No changes in $file"
4747
done
4848
49-
- name: Push changes
49+
- name: Push changes to develop branch
5050
env:
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5252
run: |
53-
git remote remove origin
54-
git remote add origin https://github.com/CodeSnap-ORG/editor
55-
git push origin HEAD:develop
53+
# Ensure we push to the current repo’s develop branch
54+
REPO_URL="https://github.com/${{ github.repository }}.git"
55+
git push "$REPO_URL" HEAD:develop

0 commit comments

Comments
 (0)