Skip to content
Merged
Show file tree
Hide file tree
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
10 changes: 4 additions & 6 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,8 @@ on:
jobs:
release:
runs-on: ubuntu-latest
defaults:
run:
working-directory: www
steps:
- uses: actions/checkout@v4
with:
path: www

- uses: actions/checkout@v4
with:
Expand All @@ -40,6 +35,10 @@ jobs:
tool/format-release ../www ${{ github.event.client_payload.version || github.event.inputs.version }} .
working-directory: ruby

- name: Cleanup ruby directory
run: |
rm -rf ruby

- name: Create Commit
run: |
git config user.name "GitHub Actions Bot"
Expand All @@ -58,4 +57,3 @@ jobs:
title: "Create release for ${{ github.event.client_payload.version || github.event.inputs.version }}"
body: "This is an automated pull request to create a release"
draft: true

2 changes: 1 addition & 1 deletion lib/draft-release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
template = File.read("lib/release-template.erb")
version = ARGV[0] || "3.3.4"

output_path = "en/news/_posts/ruby-#{Time.now.strftime("%Y-%m-%d")}-#{version.gsub(/\./, "-")}-released.md"
output_path = "en/news/_posts/#{Time.now.strftime("%Y-%m-%d")}-ruby-#{version.gsub(/\./, "-")}-released.md"

File.open(output_path, "w") do |file|
file.write ERB.new(template).result(binding)
Expand Down