File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 4242 CHANGED_FILES=$(git diff --name-only $PREVIOUS_COMMIT HEAD)
4343 TYPST_CHANGES=$(echo "$CHANGED_FILES" | grep -E '\.typ(st)?$' || true)
4444 README_CHANGES=$(echo "$CHANGED_FILES" | grep -E 'README\.md$' || true)
45-
46- if [ -n "$TYPST_CHANGES" ] || [ -n "$README_CHANGES" ] || [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
45+ ASSETS_CHANGES=$(echo "$CHANGED_FILES" | grep -E 'assets/' || true)
46+
47+ if [ -n "$TYPST_CHANGES" ] || [ -n "$README_CHANGES" ] || [ -n "$ASSETS_CHANGES" ] || [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
4748 echo "should_build=true" >> $GITHUB_OUTPUT
4849 echo "Changes detected in Typst files or README.md, proceeding with build"
4950 else
7778 run : |
7879 echo "TYPST_DIRS=$(find . -name "main.typst" -o -name "main.typ" | xargs dirname | tr '\n' ' ')" >> $GITHUB_ENV
7980 mkdir -p build
81+
82+ - name : Copy assets
83+ id : copy_assets
84+ run : |
85+ cp -r ./assets ./build
8086
8187 - name : Build PDFs from Typst projects
8288 run : |
You can’t perform that action at this time.
0 commit comments