Skip to content

Commit

Permalink
test git action
Browse files Browse the repository at this point in the history
  • Loading branch information
RWTH-MK committed Nov 16, 2024
1 parent 604feca commit d1a4bed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/conditional_convert_via_pandoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
$FilesDiff=$diff | Where-Object { $_ -match 'content/' -and $_ -match '.md$' -and -not ($_ -match '_index.md') }
$HasDiff=$FilesDiff.Length -gt 0
echo "$FilesDiff"
# Set the output named "bool_files_changed"
echo "bool_files_changed=$HasDiff" >> $env:GITHUB_OUTPUT
echo "list_changed_files=$FilesDiff" >> $env:GITHUB_OUTPUT
Expand All @@ -44,19 +43,21 @@ jobs:
# List types which will only use --standalone. You can easily add more extensions if you're fine with this setting
# Pandoc creates an AST (Abstract Syntax Tree); reuse this by saving/reading from .ast
# You can easily add individual conversion rules by using pandoc after the 'done' part. Keep in mind to finish all non-comment lines with backslash
#bash ${{ github.workspace }}/pandoc.sh $list_changed_files
conditional_pandoc:
runs-on: 'ubuntu-22.04'
needs: [ condition_check_files ]
if: needs.condition_check_files.outputs.bool_files_changed == 'True'
if: needs.condition_check_files.outputs.bool_files_changed == 'true'
env:
list_changed_files: ${{ needs.condition_changed_files.outputs.list_changed_files }}
list_changed_files: ${{ needs.condition_check_files.outputs.list_changed_files }}
steps:
- name: install_pandoc
uses: pandoc/actions/setup@v1
with:
version: 3.5
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: run_pandoc
run: |
echo "$list_changed_files"
echo ls
bash ./pandoc.sh "$list_changed_files"
2 changes: 1 addition & 1 deletion content/instructions/Test/test.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ tags:
---

## In the beginning...
... was the trial which shall seal their fate.
... was the trial which shall seal their fate. *Dramatic music*
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! Wup!
... war der Testlauf, der ihr aller Schicksal besiegeln sollte. Jetzt neu mit KI-Panade! Knusper! Woop! Let's go

0 comments on commit d1a4bed

Please sign in to comment.