Skip to content

ci: skip ci tests when only markdown files are changed in a push #350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kitsiosk
Copy link

Change Summary

Currently, the ci workflow will run even when a push changes only markdown files (e.g., README.md).

With these changes, a push that changes only markdown files will not trigger the workflow, thus speeding up the project's CI and saving compute resources 🌱 (see below for quantity).

Example

Here is an example of the behaviour described above: the commit 27371d9 changed these files: README.md and, when pushed, triggered this workflow run, which ran for ~5 CPU minutes. With the proposed changes, these 5 CPU minutes would have been saved, clearing the queue for other workflows and speeding up the CI of the project, while also saving resources in general.

Note that this is a single example out of 8 examples over the last few months; a lower estimate for the accumulated gain is 1 CPU hour, but the actual number could be higher because our cutoff date is late May and our data go only a few months back.

This only affects the push trigger and not the pull_request trigger, so the actions related to pull requests (opening, pushing new commits on an open PR, closing) will not be affected, only the pushes to branches which do not have an open pull request.

Click here to see all the recent CI runs triggered by markdown files.

commit 27371d9 => run url
commit 969de30 => run url
commit b4d8003 => run url
commit 6b155b8 => run url
commit 6b155b8 => run url
commit b579897 => run url
commit 5091190 => run url
commit 90df888 => run url

Context

Hi,

We are a team of researchers from University of Zurich and we are currently working on optimizations in GitHub Actions workflows.

Thanks for your time on this.

Kindly let us know (here or in the email below) if you would like to ignore other file types or apply the filter to other workflows/triggers, or if you have any question whatsoever.

Best regards,
Konstantinos Kitsios
[email protected]

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