From 26c0fbf480c698b9a2f7e1bed0c0b8862b159d57 Mon Sep 17 00:00:00 2001 From: RWTH-MK Date: Fri, 8 Nov 2024 13:07:16 +0100 Subject: [PATCH] test git action with script as file --- .github/workflows/conditional_convert_via_pandoc.yml | 10 +--------- content/instructions/Test/test.md | 2 +- pandoc.sh | 10 ++++++++++ 3 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 pandoc.sh diff --git a/.github/workflows/conditional_convert_via_pandoc.yml b/.github/workflows/conditional_convert_via_pandoc.yml index cba13a7..14359c7 100644 --- a/.github/workflows/conditional_convert_via_pandoc.yml +++ b/.github/workflows/conditional_convert_via_pandoc.yml @@ -55,12 +55,4 @@ jobs: with: version: 3.5 - name: run_pandoc - env: - Only_Standalone_Output_Types: "latex pdf html docx odt" - run: >- - parallel --jobs 0 \ - pandoc --from markdown --to native {} -o '{.}.ast' ';' \ - for i in $Only_Standalone_Output_Types';' do \ - pandoc --from native '{.}.ast' --standalone -o '{.}.$i' ';' \ - done';' \ - rm '{.}.ast' ::: $list_changed_files + run: bash ./pandoc.sh $list_changed_files diff --git a/content/instructions/Test/test.md b/content/instructions/Test/test.md index 4ff36e0..dc56798 100644 --- a/content/instructions/Test/test.md +++ b/content/instructions/Test/test.md @@ -16,4 +16,4 @@ category: --- ## Am Anfang ... -... war der Testlauf, der ihr aller Schicksal besiegeln sollte. Jetzt neu mit KI-Panade! Knusper! +... war der Testlauf, der ihr aller Schicksal besiegeln sollte. Jetzt neu mit KI-Panade! Knusperidudel! diff --git a/pandoc.sh b/pandoc.sh new file mode 100644 index 0000000..c23abb7 --- /dev/null +++ b/pandoc.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +Only_Standalone_Output_Types="latex pdf html docx odt" + +parallel --jobs 0 \ + pandoc --from markdown --to native {} -o '{.}.ast' ';'\ + for i in "$Only_Standalone_Output_Types"';' do \ + pandoc --from native '{.}.ast' --standalone -o '{.}.$i' ';' \ + done';' \ + rm '{.}.ast' ::: "$1"