Skip to content

Commit b51451b

Browse files
committed
2021-06-21 13:46:53
1 parent 8fd4f6f commit b51451b

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/mirror.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
runs-on: ubuntu-latest
99
name: "Mirror"
1010
steps:
11+
- run: echo "REPOSITORY_NAME=$( echo '${{ github.repository }}' | awk -F '/' '{print $2}' )" >> $GITHUB_ENV
12+
shell: bash
1113
- uses: pkgstore/github-action-mirror@main
1214
with:
1315
source_repo: "https://github.com/${{ github.repository }}.git"
@@ -16,3 +18,19 @@ jobs:
1618
target_repo: "https://gitlab.com/${{ github.repository }}.git"
1719
target_user: "${{ secrets.MIRROR_TARGET_USER_GITLAB }}"
1820
target_token: "${{ secrets.MIRROR_TARGET_TOKEN_GITLAB }}"
21+
- uses: pkgstore/github-action-mirror@main
22+
with:
23+
source_repo: "https://github.com/${{ github.repository }}.git"
24+
source_user: "${{ secrets.MIRROR_SOURCE_USER_GITHUB }}"
25+
source_token: "${{ secrets.MIRROR_SOURCE_TOKEN_GITHUB }}"
26+
target_repo: "https://github.com/pkgstore-mirror/${{ env.REPOSITORY_NAME }}.git"
27+
target_user: "${{ secrets.MIRROR_TARGET_USER_GITHUB }}"
28+
target_token: "${{ secrets.MIRROR_TARGET_TOKEN_GITHUB }}"
29+
- uses: pkgstore/github-action-mirror@main
30+
with:
31+
source_repo: "https://github.com/${{ github.repository }}.git"
32+
source_user: "${{ secrets.MIRROR_SOURCE_USER_GITHUB }}"
33+
source_token: "${{ secrets.MIRROR_SOURCE_TOKEN_GITHUB }}"
34+
target_repo: "https://codeberg.org/${{ github.repository }}.git"
35+
target_user: "${{ secrets.MIRROR_TARGET_USER_CODEBERG }}"
36+
target_token: "${{ secrets.MIRROR_TARGET_TOKEN_CODEBERG }}"

0 commit comments

Comments
 (0)