Skip to content

Commit

Permalink
#305 update sync script
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintAngeLs committed Jul 21, 2024
1 parent d203220 commit 83c8ab9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/gitlab_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ jobs:
git config --global user.email "voznesenskijandrej5@gmail.com"
git config --global user.name "Andrii Voznesenskyi"
- name: Remove .gitlab-ci.yml for specific repository
run: |
if [[ "${{ github.repository }}" == "SaintAngeLs/distributed_minispace" ]]; then
rm -f .gitlab-ci.yml
fi
- name: Adding GitLab remote repository 1
run: |
GITLAB_REPO="https://oauth2:${{ secrets.GITLAB_TOKEN }}@gitlab.com/SaintAngeLs/distributed_minispace.git"
Expand All @@ -48,7 +54,6 @@ jobs:
git remote set-url gitlab1 $GITLAB_REPO
else
git remote add gitlab1 $GITLAB_REPO
fi
- name: Push all branches to GitLab 1
run: git push gitlab1 --all --force
Expand All @@ -64,7 +69,6 @@ jobs:
git remote set-url gitlab2 $GITLAB_REPO
else
git remote add gitlab2 $GITLAB_REPO
fi
- name: Push all branches to GitLab 2
run: git push gitlab2 --all --force
Expand Down

0 comments on commit 83c8ab9

Please sign in to comment.