Skip to content

Commit

Permalink
ci(sync.yml): tryna fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iahmadgad authored Dec 13, 2024
1 parent 78efcc2 commit 91b43aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Sync

on:
push:
branches: [ "main" , "dev" ]
branches: [ "main" ]
tags: [ "*.v" ]

jobs:
Expand All @@ -20,9 +20,9 @@ jobs:
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git checkout dev
git checkout -- dev
git merge main
git push origin/dev
git push -u origin -- dev
gitlab-mirror:
name: Sync GitLab Mirror
Expand All @@ -34,7 +34,7 @@ jobs:
with:
fetch-depth: 0 # Fetch full history, including tags

- name: Mirror to GitLab (main and dev branches with tags)
- name: Mirror to GitLab
env:
GITLAB_URL: gitlab.com/iahmagad/termux-clock.git
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
Expand All @@ -44,7 +44,7 @@ jobs:
git config --global user.email "[email protected]"
# Push main and dev branches
git push https://oauth2:$GITLAB_TOKEN@$GITLAB_URL main dev
git push https://oauth2:$GITLAB_TOKEN@$GITLAB_URL main
# Push tags associated with these branches
git push https://oauth2:$GITLAB_TOKEN@$GITLAB_URL --tags

0 comments on commit 91b43aa

Please sign in to comment.