Skip to content

Commit

Permalink
Use more suitable name
Browse files Browse the repository at this point in the history
  • Loading branch information
komainu8 committed Dec 3, 2024
1 parent 72595a9 commit 9c47b9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def define_generate_blog_task
end
end

def file_name
def post_name
"#{Time.now.strftime("%F")}-#{@package}-#{@version}.md"
end

Expand All @@ -52,7 +52,7 @@ def post(language, package, version)

def blog_posts
["ja", "en"].each do |language|
File.open("#{@jekyll_path}/#{language}/_posts/#{file_name}", "w") do |blog_post|
File.open("#{@jekyll_path}/#{language}/_posts/#{post_name}", "w") do |blog_post|
blog_post.write(post(language, @package, @version))
end
end
Expand Down

0 comments on commit 9c47b9c

Please sign in to comment.