diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..0b68967 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -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 }} diff --git a/README.md b/README.md index 8a9f185..1630c77 100644 --- a/README.md +++ b/README.md @@ -99,15 +99,15 @@ public class Example2 { ### Available in -[![GitHub](https://img.shields.io/badge/GitHub-Main%20repo-brightgreen?style=for-the-badge&logo=GitHub)](https://github.com/Anas-Elgarhy/jpwd) -[![GitLab](https://img.shields.io/badge/GitLab-Mirror%20repo-brightgreen?style=for-the-badge&logo=GitLab)](https://gitlab.com/java-utils1/jpwd) -[![BitBucket](https://img.shields.io/badge/BitBucket-Mirror%20repo-brightgreen?style=for-the-badge&logo=BitBucket)](https://bitbucket.org/anas_elgarhy/jpwd) -[![Codeberg](https://img.shields.io/badge/Codeberg-Mirror%20repo-brightgreen?style=for-the-badge&logo=Codeberg)](https://codeberg.org/java-utils/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/Anas-Elgarhy/JColorfulConsole) +[![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/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)