From 9c6e9cca0ced206632f50d9a4aa5c54a08eceee7 Mon Sep 17 00:00:00 2001 From: Anas Elgarhy Date: Sun, 1 May 2022 00:46:32 +0200 Subject: [PATCH] Add mirror action --- .github/workflows/mirror.yml | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/mirror.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..6dac509 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,42 @@ +# This is a basic workflow that is manually triggered + +name: Mirror repo +on: [push] + + +jobs: + repo_name: dotfiles + 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/{{repo_name}}.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/{{repo_name}}.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/{{repo_name}}.git' + REMOTE_NAME: codeberg + GIT_USERNAME: anas-elgarhy + GIT_PASSWORD: ${{ secrets.CODEBERG_TOKEN }}