Merge pull request #8 from Anas-Elgarhy/add-mirror-action

Add mirror action
This commit is contained in:
Anas Elgarhy 2022-06-16 06:17:34 +02:00 committed by GitHub
commit 01e1555e57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 6 deletions

39
.github/workflows/mirror.yml vendored Normal file
View file

@ -0,0 +1,39 @@
# This is a basic workflow that is manually triggered
name: Mirror repo
on: [push]
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: mirror in gitlab
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: yesolutions/mirror-action@master
with:
REMOTE: 'https://gitlab.com/Anas-Elgarhy/JColorfulConsole.git'
GIT_USERNAME: Anas-Elgarhy
GIT_PASSWORD: ${{ secrets.GITLAP_TOKEN }}
- name: mirror in bitbucket
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: yesolutions/mirror-action@master
with:
REMOTE: 'https://anas_elgarhy@bitbucket.org/anas_elgarhy/jcolorfulconsole.git'
REMOTE_NAME: bitbucket
GIT_USERNAME: anas_elgarhy
GIT_PASSWORD: ${{ secrets.BITBUCKET_TOKEN }}
- name: mirror in codeberg
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: yesolutions/mirror-action@master
with:
REMOTE: 'https://codeberg.org/anas-elgarhy/JColorfulConsole.git'
REMOTE_NAME: codeberg
GIT_USERNAME: anas-elgarhy
GIT_PASSWORD: ${{ secrets.CODEBERG_TOKEN }}

View file

@ -99,15 +99,15 @@ public class Example2 {
### Available in ### Available in
[![GitHub](https://img.shields.io/badge/GitHub-Main%20repo-brightgreen?style=for-the-badge&logo=GitHub)](https://github.com/Anas-Elgarhy/jpwd) [![GitHub](https://img.shields.io/badge/GitHub-Main%20repo-brightgreen?style=for-the-badge&logo=GitHub)](https://github.com/Anas-Elgarhy/JColorfulConsole)
[![GitLab](https://img.shields.io/badge/GitLab-Mirror%20repo-brightgreen?style=for-the-badge&logo=GitLab)](https://gitlab.com/java-utils1/jpwd) [![GitLab](https://img.shields.io/badge/GitLab-Mirror%20repo-brightgreen?style=for-the-badge&logo=GitLab)](https://gitlab.com/Anas-Elgarhy/JColorfulConsole)
[![BitBucket](https://img.shields.io/badge/BitBucket-Mirror%20repo-brightgreen?style=for-the-badge&logo=BitBucket)](https://bitbucket.org/anas_elgarhy/jpwd) [![BitBucket](https://img.shields.io/badge/BitBucket-Mirror%20repo-brightgreen?style=for-the-badge&logo=BitBucket)](https://bitbucket.org/anas_elgarhy/jcolorfulconsole)
[![Codeberg](https://img.shields.io/badge/Codeberg-Mirror%20repo-brightgreen?style=for-the-badge&logo=Codeberg)](https://codeberg.org/java-utils/jpwd) [![Codeberg](https://img.shields.io/badge/Codeberg-Mirror%20repo-brightgreen?style=for-the-badge&logo=Codeberg)](https://codeberg.org/anas-elgarhy/JColorfulConsole)
[![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=Anas-Elgarhy_jpwd)](https://sonarcloud.io/summary/new_code?id=Anas-Elgarhy_jpwd) [![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=Anas-Elgarhy_JColorfulConsole)](https://sonarcloud.io/summary/new_code?id=Anas-Elgarhy_JColorfulConsole)
[![SonarCloud](https://sonarcloud.io/images/project_badges/sonarcloud-black.svg)](https://sonarcloud.io/summary/new_code?id=Anas-Elgarhy_jpwd) [![SonarCloud](https://sonarcloud.io/images/project_badges/sonarcloud-black.svg)](https://sonarcloud.io/summary/new_code?id=Anas-Elgarhy_JColorfulConsole)
![License: GPL-3.0](https://img.shields.io/badge/License-GPL%203.0-blue.svg) ![License: GPL-3.0](https://img.shields.io/badge/License-GPL%203.0-blue.svg)