Skip to content

wgp-2020/actions_copyrepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 

Repository files navigation

Actions CopyRepo

利用GitHub Actions复制公共仓库为私有仓库

使用前需Fork当前仓库

🔑 个人访问令牌

  • 创建:Settings (点击右上角头像) > Developer settings > Personal access tokens > Tokens (classic) > Generate new token > Generate new token (classic)
    • 只勾选仓库权限

    • 查看截图

      18dd8ee0436aa105848631936b51ec7

  • 配置:Settings > Secrets and variables > Actions > Secrets > New repository secret
    • 变量名:TOKEN

    • 变量值:拥有仓库权限的个人访问令牌

    • 查看截图

      99887ee23510e96b7c466a569521982

使用:Actions > 复制公共仓库为私有仓库 > Run workflow

  • 查看截图

    b5b7f109d18f45484d898a682f4e03c

About

工作流:复制公共仓库为私有仓库

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published