Skip to content

chore: action to sync repo to codeberg #2

chore: action to sync repo to codeberg

chore: action to sync repo to codeberg #2

on: [push, pull_request]
jobs:
push:
runs-on: ubuntu-latest
if: github.repository == 'ibhagwan/fzf-lua'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: |
mkdir -p ~/.ssh
echo "${{ secrets.GIT_SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
# Ignore hosts keys, since we accept them as-is, add remotes
git config --global core.sshCommand 'ssh -i ~/.ssh/id_rsa -o IdentitiesOnly=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
git remote add mirror ssh://[email protected]/ibhagwan/fzf-lua.git
git push --tags --force --prune mirror 'refs/remotes/origin/*:refs/heads/*'