首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >运行到Github工作流时,快速通道changelog_from_git_commits始终为空

运行到Github工作流时,快速通道changelog_from_git_commits始终为空
EN

Stack Overflow用户
提问于 2021-08-26 05:11:39
回答 1查看 274关注 0票数 1

您好,只是想知道为什么changelog_from_git_commits在运行到本地计算机时有一个值,但是当我试图运行到Github的通道时,Workflow.it总是空的?

快速文件

代码语言:javascript
复制
desc "Read changelog"
lane :read_commit_history do
  recent = changelog_from_git_commits(
    between: ["9025d4f", "HEAD"] # commit hashes
  )
end

Github工作流

代码语言:javascript
复制
name: Read Changelog Workflow
on:
  workflow_dispatch:
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up Ruby 2.6
        uses: actions/setup-ruby@v1
        with:
          ruby-version: 2.6.x
      - name: Install Dependencies
        run: gem install bundler && bundle install && bundle update fastlane
      - name: Run Fastlane Compile Lane
        run: bundle exec fastlane read_commit_history

感谢你的帮助,谢谢,

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-08-26 06:45:29

要获取所有标记和分支的所有历史记录,只需添加fetch-depth: 0

代码语言:javascript
复制
- uses: actions/checkout@v2
  with:
    fetch-depth: 0

https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68932854

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档