File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Sync repo to the CODEBERG mirror
21name : Repo sync (GitHub -> CODEBERG)
2+
33on :
44 push :
55 branches :
1111jobs :
1212 sync-repo-to-codeberg :
1313 runs-on : ubuntu-latest
14+
1415 steps :
15- - name : " Checkout"
16+ - name : Checkout
1617 uses : actions/checkout@v2
1718 with :
1819 fetch-depth : 0
19- - name : " Gather facts"
20+
21+ - name : Gather facts
2022 run : |
2123 echo "Repo variables:"
2224 echo " CODEBERG_URL: ${{ vars.CODEBERG_BASE_URL }}${{ vars.CODEBERG_REPO }}.git"
2325 echo " CODEBERG_USERNAME: ${{ vars.CODEBERG_USERNAME }}"
24- - uses : yesolutions/mirror-action@master
25- with :
26- REMOTE : ${{ vars.CODEBERG_BASE_URL }}${{ vars.CODEBERG_REPO }}.git
27- GIT_USERNAME : ${{ vars.CODEBERG_USERNAME }}
28- GIT_PASSWORD : ${{ secrets.CODEBERG_PASSWORD }}
26+
27+ - name : Mirror to Codeberg
28+ uses : yesolutions/mirror-action@master
29+ with :
30+ REMOTE : ${{ vars.CODEBERG_BASE_URL }}${{ vars.CODEBERG_REPO }}.git
31+ GIT_USERNAME : ${{ vars.CODEBERG_USERNAME }}
32+ GIT_PASSWORD : ${{ secrets.CODEBERG_PASSWORD }}
You can’t perform that action at this time.
0 commit comments