Git Mirror #2
Workflow file for this run
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: Git Mirror | |
# Mirror git repo to other sites | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- develop | |
jobs: | |
mirror: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Mirror to Codeberg | |
env: | |
GIT_MIRROR_URL: ${{ secrets.CODEBERG_URL }} | |
GIT_MIRROR_TOKEN: ${{ secrets.CODEBERG_TOKEN }} | |
run: | | |
git config --global user.name 'goetz' | |
git config --global user.email '[email protected]' | |
git remote add mirror ${GIT_MIRROR_URL} | |
git push --mirror mirror |