Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0xtheprodev/gitlab-mirror
Github Action to Push Latest Change to Corresponding Gitlab Mirror Repository
https://github.com/0xtheprodev/gitlab-mirror
actions backup github gitlab mirror utility
Last synced: 27 days ago
JSON representation
Github Action to Push Latest Change to Corresponding Gitlab Mirror Repository
- Host: GitHub
- URL: https://github.com/0xtheprodev/gitlab-mirror
- Owner: 0xTheProDev
- License: gpl-2.0
- Created: 2024-09-17T10:32:55.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-18T10:02:41.000Z (about 2 months ago)
- Last Synced: 2024-09-27T11:23:05.675Z (about 1 month ago)
- Topics: actions, backup, github, gitlab, mirror, utility
- Language: Shell
- Homepage: https://github.com/marketplace/actions/gitlab-mirror-action
- Size: 59.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Gitlab-Mirror
[![License](https://img.shields.io/github/license/0xTheProDev/gitlab-mirror?style=for-the-badge&label=license)](https://github.com/0xTheProDev/gitlab-mirror/blob/main/LICENSE)
[![Open Issues](https://img.shields.io/github/issues-raw/0xTheProDev/gitlab-mirror?style=for-the-badge)](https://github.com/0xTheProDev/gitlab-mirror/issues)
[![Closed Issues](https://img.shields.io/github/issues-closed-raw/0xTheProDev/gitlab-mirror?style=for-the-badge)](https://github.com/0xTheProDev/gitlab-mirror/issues?q=is%3Aissue+is%3Aclosed)
[![Open Pulls](https://img.shields.io/github/issues-pr-raw/0xTheProDev/gitlab-mirror?style=for-the-badge)](https://github.com/0xTheProDev/gitlab-mirror/pulls)
[![Closed Pulls](https://img.shields.io/github/issues-pr-closed-raw/0xTheProDev/gitlab-mirror?style=for-the-badge)](https://github.com/0xTheProDev/gitlab-mirror/pulls?q=is%3Apr+is%3Aclosed)
[![Contributors](https://img.shields.io/github/contributors/0xTheProDev/gitlab-mirror?style=for-the-badge)](https://github.com/0xTheProDev/gitlab-mirror/graphs/contributors)
[![Activity](https://img.shields.io/github/last-commit/0xTheProDev/gitlab-mirror?style=for-the-badge&label=most%20recent%20activity)](https://github.com/0xTheProDev/gitlab-mirror/pulse)## Description
Github Action to Push Latest Change to Corresponding GitLab Mirror Repository
## Usage
**Pre-requisite:** Add your GitLab [Access Token](https://docs.gitlab.com/ee/user/project/settings/project_access_tokens.html)_(preferred)_ or Password into your GitHub secrets.
```yaml
---
name: Mirror Repositoryon:
push:
branches:
- mainconcurrency: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: readjobs:
gitlab:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # This must be set to 0 to avoid shallow cloning.- name: Mirror Repository
uses: 0xTheProDev/gitlab-mirror@v1
with:
password: ${{ secrets.GITLAB_PAT }}
project-id: "github-mirror"
username: "gitlab"
```## Reporting a Bug
Head on to [**Discussion**](https://github.com/0xTheProDev/gitlab-mirror/discussions) section to report a bug or to ask for any feature. Feel to add your queries about using this library as well under _Q & A_ section of it. Remember, do not create any Issues by yourself, maintainers of this repository will open one if deemed necessary.
## Changelog
See [CHANGELOG](https://github.com/0xTheProDev/gitlab-mirror/blob/main/.github/CHANGELOG.md) for more details on what has been changed in the latest release.
## Contributing
See [Contributing Guidelines](https://github.com/0xTheProDev/gitlab-mirror/blob/main/.github/CONTRIBUTING.md).
## License
This project is licensed under the terms of the MIT license, see [LICENSE](https://github.com/0xTheProDev/gitlab-mirror/blob/main/LICENSE) for more details.