【问题标题】:Fastlane checkout new branchFastlane结帐新分支
【发布时间】:2020-07-19 21:05:17
【问题描述】:

我一直在尝试使用我的 fastfile 创建一个通道来创建一个新分支。就我尝试运行 git 命令而言,我必须在快速文件中使用“sh”命令,如下所示:sh("git", "checkout", "-b","ANewBranch")

是否有插件可以消除使用 sh 和双引号的这种依赖关系?

我也一直在尝试从我的快速文件中运行“git_branch”操作,但它不起作用。 “increment_build_number”等其他操作按预期工作。这是快速文件:

lane :createBranch do | options |
    if options[:branchName]
        sh("git", "checkout", "-b", options[:branchName])
        git_branch
    else
        UI.user_error!("Send the branch name as: <fastlane createBranch branchName:NewBranchName>")
    end
end

【问题讨论】:

    标签: ios continuous-integration fastlane continuous-delivery


    【解决方案1】:

    我知道这是一个老问题。但如果有人想知道如何做到这一点,请查看this Fastlane 插件。

    【讨论】:

      猜你喜欢
      • 2019-08-11
      • 2014-02-12
      • 2014-06-13
      • 1970-01-01
      • 1970-01-01
      • 2021-03-14
      • 1970-01-01
      • 2023-01-31
      相关资源
      最近更新 更多