Add mirror action 🪞

This commit is contained in:
Anas Elgarhy 2022-06-16 06:11:16 +02:00
parent d226619052
commit 9ed352ca83
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 }}