Delete mirror_with_gitLab.yml

This commit is contained in:
Mitresse Kevin
2024-09-03 19:10:33 +00:00
parent 72e6d2c6b2
commit f10206e868
-35
View File
@@ -1,35 +0,0 @@
name: Sync with GitLab
on:
push:
branches:
- main # Branche(s) à synchroniser avec GitLab
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Configure Git
run: |
git config --global user.email "kmitresse@gmail.com"
git config --global user.name "Kevin Mitressé"
- name: Add GitLab remote
run: git remote add gitlab https://git.univ-pau.fr/kmitresse/Master-TI-2.git
- name: Pull from GitLab
env:
GITLAB_USERNAME: ${{ secrets.GITLAB_USERNAME }}
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
run: |
git pull https://$GITLAB_USERNAME:$GITLAB_TOKEN@git.univ-pau.fr/kmitresse/Master-TI-2.git main --rebase
- name: Push to GitLab
env:
GITLAB_USERNAME: ${{ secrets.GITLAB_USERNAME }}
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
run: |
git push https://$GITLAB_USERNAME:$GITLAB_TOKEN@git.univ-pau.fr/kmitresse/Master-TI-2.git