Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/github_actions/update_docs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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