Skip to content

Skip github CI/CD workflows for markdown and cff files#795

Merged
dennisvang merged 4 commits into
developfrom
maintenance/no-ci-for-markdown
Nov 3, 2025
Merged

Skip github CI/CD workflows for markdown and cff files#795
dennisvang merged 4 commits into
developfrom
maintenance/no-ci-for-markdown

Conversation

@dennisvang

Copy link
Copy Markdown
Contributor

Changes to markdown or cff (citation) files do not require CI/CD workflows to run.

@dennisvang

dennisvang commented Nov 3, 2025

Copy link
Copy Markdown
Contributor Author

This should be so simple, but, apparently, it is not: actions/runner#2324

The idea was to prevent CI runs for PR updates (commits added to a PR topic branch) that only change markdown and other text files.

However, apparently, the pull_request synchronize activity considers all the changes in the PR, not just those in the latest commit. That means if the entire PR contains any changes to other file types, CI will still trigger, even if the latest commit only changes files that match paths-ignore.

Still, it should work for PRs that only change files mentioned in paths-ignore.

For individual commits in PRs that also change other file types, we'll still need to use [skip-ci] in the commit message, which is too easy to forget...

@dennisvang dennisvang added the chore Maintenance label Nov 3, 2025
@dennisvang dennisvang self-assigned this Nov 3, 2025
@dennisvang
dennisvang merged commit 54deb28 into develop Nov 3, 2025
13 checks passed
@dennisvang
dennisvang deleted the maintenance/no-ci-for-markdown branch November 3, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant