File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"
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 }}"
You can’t perform that action at this time.
0 commit comments