diff --git a/.github/workflows/MirrorToGitlab.yml b/.github/workflows/MirrorToGitlab.yml index c70dbf8..6be2e0a 100644 --- a/.github/workflows/MirrorToGitlab.yml +++ b/.github/workflows/MirrorToGitlab.yml @@ -1,15 +1,13 @@ name: Mirroring -on: [ push, delete, create ] +on: [ push, delete, workflow ] jobs: to_gitlab: runs-on: ubuntu-latest steps: - - uses: wearerequired/git-mirror-action@v1 - env: - SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} - SSH_KNOWN_HOSTS: ${{ secrets.SSH_KNOWN_HOSTS }} - with: - source-repo: "git@github.com:yomaq/nix-config.git" - destination-repo: "git@gitlab.com:yomaq2/nix-config.git" + - uses: keninkujovic/gitlab-sync@2.0.0 + with: + gitlab_url: https://gitlab.com/yomaq2/nix-config.git + username: ${{ secrets.USERNAME }} + gitlab_pat: ${{ secrets.GITLAB_PAT }} \ No newline at end of file