owncloud / owncloud/core

Conditional running of CI workflow jobs

Open
#41,622 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
8.8k
Forks
2.1k
Avg merge
20h 7m
Merged PRs (30d)
41

Description

When documentation-only changes are made to a PR, we currently let all the workflow jobs run. That uses a lot of resources.

Consider implementing conditional execution of workflows depending on what files changed in a commit. For example, if the only changes are in the changelog folders, then do not bother running unit and acceptance tests, just run the various commit format, PR title etc lint checks.

Possible GitHub action to do this:

https://github.com/dorny/paths-filter

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the repository's GitHub Actions workflow definitions and the proposed dorny/paths-filter action. Identify how changed paths can distinguish documentation or changelog-only changes from code changes. Done means documentation-only pull requests skip unit and acceptance tests while retaining commit-format, PR-title, and other lint checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions
Domain
ci-cd
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.