From 3a746a3133dcafd25888bd728599bb34bf40f0a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com> Date: Fri, 24 Dec 2021 11:02:26 +0100 Subject: [PATCH] fix publish with previous path --- app/models/communication/website/github_file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/communication/website/github_file.rb b/app/models/communication/website/github_file.rb index b2009d2e9..a909b66ea 100644 --- a/app/models/communication/website/github_file.rb +++ b/app/models/communication/website/github_file.rb @@ -28,7 +28,7 @@ class Communication::Website::GithubFile < ApplicationRecord def publish return unless valid_for_publication? && github.valid? - add_to_batch(github) + add_to_batch(github, github_path) if github.commit_batch(github_commit_message) update_column :github_path, manifest_data[:generated_path].call(self) end -- GitLab