Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Git repo backup Action

Actions
Backup your git repo into another one
v0.0.1
Star (4)

Git repo backup Action

GitHub Action for backup your git repo.

restriction

Now, only https://gitee.com is supported.

Secrets

  • GIT_DEPLOY_KEY - Required your deploy key which has Write access

Create Deploy Key

  1. Generate deploy key ssh-keygen -t rsa -f hugo -q -N ""
  2. Then go to "Settings > Deploy Keys" of repository
  3. Add your public key within "Allow write access" option.
  4. Copy your private deploy key to GIT_DEPLOY_KEY secret in "Settings > Secrets"

Environment Variables

  • HUGO_VERSION : optional, default is 0.54.0 - check all versions here
  • TARGET_GIT : required, your backup git repo (please use ssh or git protocol)
name: Deploy to GitHub Pages

on:
  push:
    branches:
    - master

jobs:
  git-repo-backup:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: git-repo-backup
      uses: jenkins-zh/git-backup-actions@master
      env:
        GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
        TARGET_GIT: "[email protected]:surenpi/surenpi.git"

Git repo backup Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Backup your git repo into another one
v0.0.1

Git repo backup Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.