Merge pull request #337 from 6QuizOnTheBlock/be/feat/#333-send-question #243
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: sync gitlab | |
on: | |
push: | |
branches: | |
- main | |
- AND_develop | |
- BE_develop | |
- FE_develop | |
jobs: | |
push-to-gitlab: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "μ°¨μ±μ" | |
git config user.email "[email protected]" | |
- name: Push to GitLab | |
env: | |
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} | |
run: | | |
git checkout ${{ github.ref_name }} | |
git pull origin ${{ github.ref_name }} | |
git checkout -b temp | |
git filter-branch --force --prune-empty --index-filter "git rm -rf --cached --ignore-unmatch .github" HEAD | |
git remote add gitlab https://oauth2:[email protected]/s10-final/S10P31D107.git | |
git push gitlab temp:${{ github.ref_name }} --force | |
git checkout ${{ github.ref_name }} | |
git branch -D temp |