actions / actions/runner

Let use lists in matrix include and exclude properties

Open
#857 4 comments 16 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
6.3k
Forks
1.4k
Avg merge
1d 16h
Merged PRs (30d)
24

Description

If you have a feature request that is relevant to this repository, the runner, then please include the information below:

Describe the enhancement

  • You must use lists in the matrix variables
  • But you cant use lists in the include and exclude properties so they come too much annoying too quickly.
  • I would suggest let use lists in the include and exclude variables and unroll them as individual values like actual ones

Code Snippet
If applicable, add a code snippet.
This new configuration:

matrix:
  x: [1, 2, 3, 4]
  y: [a, b, c]
  exclude:
    - x: [1, 3]
      y: [a, c]
  include: 
    - x: [2, 4]
      y: [a, d]

would behave like this actual one:

matrix:
  x: [1, 2, 3, 4]
  y: [a, b, c]
  exclude:
    - x: 1
      y: a
    - x: 1
      y: c
    - x: 3
      y: a
    - x: 3
      y: c
  include: 
    - x: 2
      y: a
    - x: 2
      y: d
    - x: 4
      y: a
    - x: 4
      y: d

I hope i dont miss any basic feature that accomplishes that and it would not be too difficult to implement.
Thanks in advance!

Contributor guide

No contributing guide indexed for this repository

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 locating the runner's matrix expansion and include/exclude handling, then trace how scalar entries are matched and expanded. The change is complete when list-valued include and exclude entries produce the individual combinations shown in the issue without changing existing scalar behavior; add or update the relevant tests you find there.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.