Mirror to Codeberg #113
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Mirror to Codeberg | |
| on: | |
| push: | |
| branches: [ main ] | |
| delete: | |
| workflow_dispatch: | |
| jobs: | |
| mirror: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Mirror to Codeberg | |
| env: | |
| CODEBERG_USERNAME: ${{ secrets.CODEBERG_USERNAME }} | |
| CODEBERG_TOKEN: ${{ secrets.CODEBERG_TOKEN }} | |
| run: | | |
| git remote add codeberg https://${{ secrets.CODEBERG_USERNAME }}:${{ secrets.CODEBERG_TOKEN }}@codeberg.org/miniflux/v2.git | |
| git push --force --prune codeberg \ | |
| "refs/heads/*:refs/heads/*" \ | |
| "refs/tags/*:refs/tags/*" |