Skip to content

Commit

Permalink
fix(CI): mkdir -p for assets (#1454)
Browse files Browse the repository at this point in the history
  • Loading branch information
hgw77 authored Nov 5, 2024
1 parent a873b1b commit 6abe382
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/initializers/sprockets_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ def self.call(input)
if filename.end_with?('_widget.js')
# without the digest in the file name
path = File.join(Rails.public_path, 'assets', File.basename(filename))
# Ensure the path directory exists
FileUtils.mkdir_p(path)
# Copy the file
FileUtils.cp(filename, path)
end
nil
Expand Down

0 comments on commit 6abe382

Please sign in to comment.