diff --git a/app/models/communication/website/github_file.rb b/app/models/communication/website/github_file.rb index 8a9fc5ea3d02141b9b615aff886ed2be306b194b..95a09b42e14e91ee20a680fc95cc638d2c0b3abc 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, github_path) + add_to_batch(github) if github.commit_batch(github_commit_message) update_column :github_path, manifest_data[:generated_path].call(self) end