diff --git a/.github/workflows/github_actions/update_docs.rb b/.github/workflows/github_actions/update_docs.rb index 954c5ae..df70caa 100644 --- a/.github/workflows/github_actions/update_docs.rb +++ b/.github/workflows/github_actions/update_docs.rb @@ -104,7 +104,7 @@ def with_retry(max_attempts = 5) # Now write the file updates to disk file_updates.each do |file_update| file_path = file_update["file_path"] - file_content = file_update["file_content"] + file_content = file_update["file_content"].gsub(/%%%(\w+)?\n/, '```\1\n').gsub(/\n%%%/, "\n```") puts "Updating file: #{file_path}" puts "file content: #{file_content}" @@ -122,7 +122,7 @@ def with_retry(max_attempts = 5) repo: doc_repo_full_name, base: 'main', head: branch_name, - title: "Doc Updates from Sublayer PR ##{@pr_number}", - body: "This PR contains documentation updates based on changes in https://github.com/sublayerapp/sublayer/pull/#{@pr_number}." + title: "Doc Updates from Sublayer PR ##{pr_number}", + body: "This PR contains documentation updates based on changes in https://github.com/sublayerapp/sublayer/pull/#{pr_number}." ).call end \ No newline at end of file