Skip to content

Avoid recompiling redundant documents in GitHub action - #3

Open
thrien wants to merge 3 commits into
assumptionsofphysics:masterfrom
thrien:action
Open

Avoid recompiling redundant documents in GitHub action#3
thrien wants to merge 3 commits into
assumptionsofphysics:masterfrom
thrien:action

Conversation

@thrien

@thrien thrien commented May 13, 2026

Copy link
Copy Markdown

Before compiling we check which files have been modified compared to the previously pushed commit (github.event.before). Unfortunately the performance we gain by compiling less LaTeX we loose by downloading the full git history.

Consider using github.event.commits.length for the fetch depth (not always reliable).

thrien added 3 commits May 12, 2026 14:49
Instead of fetching the full history to compare the commits before and
after the push, we checkout only the two commits in separate directories
and compare them manually.
@thrien

thrien commented May 13, 2026

Copy link
Copy Markdown
Author

The latest commit also avoids fetching the full history. Instead it checks out the commits before and after the push in separate directories and compares them manually.
I tested it on my fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant