当 运行 Github 工作流时,fastlane changelog_from_git_commits 始终为空
Fastlane changelog_from_git_commits always empty when running to Github Workflow
你好,我只是想知道为什么 changelog_from_git_commits
在 运行 一台本地机器上有一个值,但是当我试图 运行 我的车道到 Github Workflow.it总是空的?
快速文件
desc "Read changelog"
lane :read_commit_history do
recent = changelog_from_git_commits(
between: ["9025d4f", "HEAD"] # commit hashes
)
end
Github 工作流程
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
感谢任何帮助,谢谢,
要获取所有标签和分支的所有历史记录,只需添加 fetch-depth: 0
。
- uses: actions/checkout@v2
with:
fetch-depth: 0
https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
你好,我只是想知道为什么 changelog_from_git_commits
在 运行 一台本地机器上有一个值,但是当我试图 运行 我的车道到 Github Workflow.it总是空的?
快速文件
desc "Read changelog"
lane :read_commit_history do
recent = changelog_from_git_commits(
between: ["9025d4f", "HEAD"] # commit hashes
)
end
Github 工作流程
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
感谢任何帮助,谢谢,
要获取所有标签和分支的所有历史记录,只需添加 fetch-depth: 0
。
- uses: actions/checkout@v2
with:
fetch-depth: 0
https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches