Replace sync workflow with a new mirror workflow for GitLab #1
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
################################# | |
# @author K10s Open Source Team # | |
# @since 01/01/2025 # | |
################################# | |
name: Mirror GitLab | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
mirror-gitlab: | |
concurrency: | |
group: ${{ github.workflow }}-gitlab | |
cancel-in-progress: true | |
runs-on: ubuntu-latest | |
steps: | |
- run: git clone --bare "https://github.com/EliasDeHondt/K10s.git" . | |
- run: git push --mirror "https://$USERNAME:[email protected]/kdg-ti/the-lab/teams-24-25/k10s/k10s.git" | |
env: | |
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} | |
USERNAME: "EliasDeHondt" |