提交 de0d9604 编写于 作者: M Matthew Draper 提交者: Kasper Timm Hansen

Merge pull request #29705 from y-yagi/do_not_update_secrets_yml_enc

Do not update `secrets.yml.enc` when secretes do not change
上级 179c96ca
...@@ -107,7 +107,7 @@ def writing(contents) ...@@ -107,7 +107,7 @@ def writing(contents)
updated_contents = IO.binread(tmp_path) updated_contents = IO.binread(tmp_path)
write(File.read(tmp_path)) write(updated_contents) if updated_contents != contents
ensure ensure
FileUtils.rm(tmp_path) if File.exist?(tmp_path) FileUtils.rm(tmp_path) if File.exist?(tmp_path)
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册