GitLab Sync is a easy to use github action for syncing code to gitlab.
I was sick of all the not working github actions so I just hacked one myself lol
To use this github action follow these steps below!
GITLAB_URL
: The URL of your GitLab repository (e.g.,https://gitlab.com/yourusername/yourrepo.git
).USERNAME
: Your GitLab username.GITLAB_PAT
: Your GitLab Personal Access Token.
Create a .github/workflows/action.yml
file in your repository and add the following workflow configuration:
name: Sync Repo to GitLab
on:
push
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: keninkujovic/[email protected]
with:
gitlab_url: ${{ secrets.GITLAB_URL }}
username: ${{ secrets.USERNAME }}
gitlab_pat: ${{ secrets.GITLAB_PAT }}
Now you just need to push to GitHub and all the changes will be synced to Gitlab!
Here are the required inputs
gitlab_url
: The URL of your GitLab repository.username
: Your GitLab username.gitlab_pat
: Your Personal Access Token for GitLab.
Your feedback and contributions are welcome! Feel free to open an issue or submit a pull request in my repository.
Also if you like the actions star it!
This was built in need and not tested properly.