Skip to content

Commit

Permalink
test git action with script as file
Browse files Browse the repository at this point in the history
  • Loading branch information
RWTH-MK committed Nov 8, 2024
1 parent 20c4115 commit 26c0fbf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/conditional_convert_via_pandoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion content/instructions/Test/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!
10 changes: 10 additions & 0 deletions pandoc.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 26c0fbf

Please sign in to comment.