@@ -50,35 +50,34 @@ jobs:
5050 sudo apt install cargo
5151 cargo install tex-fmt
5252
53- # Get changed .tex files
54- - name : Get changed .tex files
55- id : changed-tex-files
56- uses : tj-actions/changed-files@v45
57- with :
58- files : |
59- **/*.tex
60- diff_relative : true # Get the list of files relative to the repo root
53+ # # Get changed .tex files
54+ # - name: Get changed .tex files
55+ # id: changed-tex-files
56+ # uses: tj-actions/changed-files@v45
57+ # with:
58+ # files: |
59+ # **/*.tex
60+ # diff_relative: true # Get the list of files relative to the repo root
6161
6262 # Format and Build LaTeX files
63- - name : Format and Build changed tex files
64- if : steps.changed-tex-files.outputs.any_changed == 'true'
65- env :
66- ALL_CHANGED_FILES : ${{ steps.changed-tex-files.outputs.all_changed_files }}
67- run : |
68- for file in ${ALL_CHANGED_FILES}; do
69- tex-fmt "$file"
70- filename=$(basename -- "$file")
71- folder=$(dirname "$file") # Get the folder of the file
72- echo "Building $filename"
73- cd "$folder" # Change to the folder where the tex file is located
74- make
75- make clean
76- cd - # Go back to root folder
77- done
78- git status
63+ # - name: Format and Build changed tex files
64+ # if: steps.changed-tex-files.outputs.any_changed == 'true'
65+ # env:
66+ # ALL_CHANGED_FILES: ${{ steps.changed-tex-files.outputs.all_changed_files }}
67+ # run: |
68+ # for file in ${ALL_CHANGED_FILES}; do
69+ # tex-fmt "$file"
70+ # filename=$(basename -- "$file")
71+ # folder=$(dirname "$file") # Get the folder of the file
72+ # echo "Building $filename"
73+ # cd "$folder" # Change to the folder where the tex file is located
74+ # make
75+ # make clean
76+ # cd - # Go back to root folder
77+ # done
78+ # git status
7979
8080 - name : Build All Files
81- if : ${{ contains(github.event.head_commit.message, '[DOCS] [ALL]') }}
8281 run : |
8382 cd docs
8483 make
0 commit comments