Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/codeberg-mirror.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Mirror to Codeberg
on:
push:
branches: [main]
workflow_dispatch:

jobs:
mirror:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Push to Codeberg
run: |
git remote add codeberg \
"https://${{ secrets.CODEBERG_USER }}:${{ secrets.CODEBERG_TOKEN }}@codeberg.org/trustyourwebsite/${{ github.event.repository.name }}.git"
git push codeberg main --force
git push codeberg --tags --force
Loading