8000 GitHub - yesolutions/mirror-action at v0.2.3
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

yesolutions/mirror-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mirror-action

A GitHub Action for mirroring your commits to a different remote repository

This project is mirrored on GitLab

Example workflows

Mirror a repository with username/password over HTTPS

For example, this project uses the following workflow to mirror from GitHub to GitLab

workflow "Mirror Workflow" {
  on = "push"
  resolves = ["Mirror Action"]
}

action "Mirror Action" {
  uses = "spyoungtech/mirror-action@master"
  secrets = ["GIT_PASSWORD"]
  args = "https://gitlab.com/spyoungtech/mirror-action.git"
  env = {
    GIT_USERNAME = "spyoungtech"
  }
}

YAML version

on: [push]
  ...
      steps:
        - uses: spyoungtech/mirror-action@master
          env:
            GIT_USERNAME: spyoungtech
            GIT_PASSWORD: ${{ secrets.GIT_PASSWORD }}
            SRC_REPO: https://github.com/${{ github.repository }}
          with:
            args: 'https://gitlab.com/spyoungtech/mirror-action.git'

Be sure to set the GIT_PASSWORD secret in the Actions editor.

Mirror a repository using SSH

Coming soon

About

A GitHub Action for mirroring your repository to a different remote repository

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 7

0