diff --git a/.github/workflows/ebook.yml b/.github/workflows/ebook.yml index df8e6ec72..1d081ec3e 100644 --- a/.github/workflows/ebook.yml +++ b/.github/workflows/ebook.yml @@ -9,6 +9,9 @@ jobs: build: runs-on: ubuntu-latest steps: + - uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.0.7' - name: Get git tag id: get_ref run: echo ::set-output name=REF::${GITHUB_REF/refs\/tags\//} diff --git a/etc/ebook/build-pdf.rb b/etc/ebook/build-pdf.rb index 4bc5432d2..81bb9920f 100644 --- a/etc/ebook/build-pdf.rb +++ b/etc/ebook/build-pdf.rb @@ -82,9 +82,7 @@ def build_chapter chapter_data chapter.force_encoding(::Encoding::UTF_8) - # Update for Ruby 3.2 - # chapter_front_matter = YAML.load_file("../../_chapters/#{chapter_name}.md") - chapter_front_matter = YAML::load(File.read("../../_chapters/#{chapter_name}.md")) + chapter_front_matter = YAML.load_file("../../_chapters/#{chapter_name}.md") ################# # Validations