sync-gitlab.yml 514 B

12345678910111213141516171819202122232425
  1. name: Sync to GitLab
  2. permissions:
  3. contents: read
  4. on:
  5. push:
  6. workflow_dispatch:
  7. jobs:
  8. sync:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Checkout repository
  12. uses: actions/checkout@v4
  13. with:
  14. fetch-depth: 0
  15. - name: Sync to GitLab
  16. uses: keninkujovic/gitlab-sync@2.1.0
  17. with:
  18. gitlab_url: https://gitlab.com/TheWildJames/${{ github.event.repository.name }}.git
  19. username: TheWildJames
  20. gitlab_pat: ${{ secrets.GITLAB_PAT }}
  21. force_push: true