Repository navigation
CI: 修正 publish 時 rake release 判定有未提交檔案 - #51
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
第一次發佈 4.0.2 的 run(https://github.com/superlanding/super_tools/actions/runs/39903868151 )在
rake release失敗:There are files that need to be committed first.原因:
ruby/setup-ruby的bundler-cache會把 BUNDLE_PATH 等設定寫進gemfiles/.bundle/config,而這個檔案有被 git 追蹤,所以 guard_clean 判定工作目錄不乾淨。修法:publish job 在 release 前加一步,把
gemfiles/.bundle/config標成 assume-unchanged(只影響這次 CI 的 checkout,不改 repo 內容、不改 gem 內容)。前後各印一次git status --porcelain方便確認。當時 4.0.2 沒有發佈出去,也沒有打 tag。這張合進 master 後會重新跑,會再停在
gem-publish等核准。