diff --git a/.github/workflows/synch-to-gitlab.yml b/.github/workflows/synch-to-gitlab.yml new file mode 100644 index 000000000..e706afe64 --- /dev/null +++ b/.github/workflows/synch-to-gitlab.yml @@ -0,0 +1,18 @@ +name: Sync Repository to GitLab + +on: + push + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Sync to GitLab + uses: yesolutions/mirror-action@662fce0eced8996f64d7fa264d76cddd84827f33 + with: + REMOTE: https://open-git.deltares.nl/deltares-github-backups/${{ github.event.repository.name }}.git + GIT_USERNAME: ${{ secrets.GITLAB_USERNAME }} + GIT_PASSWORD: ${{ secrets.GITLAB_PAT }}