@@ -17,8 +17,9 @@ jobs:
|
||||
|
||||
- name: Find all root .tex files
|
||||
id: roots
|
||||
#ROOTS=$(grep -rl '\\documentclass' --include='*.tex' . | sed 's|^\./||' | tr '\n' ' ')
|
||||
run: |
|
||||
ROOTS=$(grep -rl '\\documentclass' --include='*.tex' . | sed 's|^\./||' | tr '\n' ' ')
|
||||
ROOTS=$(awk '/\\begin\{/{if (!dc) exit} /\\documentclass/{dc=1; print FILENAME; exit}' $(find . -name "*.tex") | sed 's|^\./||' | tr '\n' ' ')
|
||||
echo "roots=$ROOTS" >> "$GITHUB_OUTPUT"
|
||||
echo "Root files to build: $ROOTS"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user