Skip to content

feat: implement workflow:rules:variables support (#1832)#1833

Merged
firecow merged 1 commit intofirecow:masterfrom
bcouetil:feat/workflow-rules-variables
Apr 29, 2026
Merged

feat: implement workflow:rules:variables support (#1832)#1833
firecow merged 1 commit intofirecow:masterfrom
bcouetil:feat/workflow-rules-variables

Conversation

@bcouetil
Copy link
Copy Markdown
Collaborator

@bcouetil bcouetil commented Apr 19, 2026

Closes #1832

Evaluate workflow:rules after data expansion and merge matched rule variables into global variables, making them available to all jobs.

Variables follow GitLab CI precedence: job-level variables override workflow:rules:variables.

Variable precedence

Per GitLab docs, workflow:rules:variables override top-level variables, but are themselves overridden by job-level variables. This is tested and matches the official behavior.

@bcouetil bcouetil self-assigned this Apr 19, 2026
@bcouetil bcouetil requested a review from firecow April 19, 2026 12:31
Evaluate workflow:rules after data expansion and merge matched rule
variables into global variables, making them available to all jobs.

Variables follow GitLab CI precedence: job-level variables override
workflow:rules:variables.

Co-authored-by: Copilot <[email protected]>
@bcouetil bcouetil force-pushed the feat/workflow-rules-variables branch from 1225449 to 7311bc9 Compare April 19, 2026 12:35
bcouetil added a commit to bcouetil/gitlab-ci-local that referenced this pull request Apr 20, 2026
Display the environment name in --list and --list-csv outputs, placed
just before the needs column. Jobs without an environment show an empty
value. The list-environment test expects workflow:rules:variables
resolution (PR firecow#1833) and will fail until that feature is merged.

Co-authored-by: Copilot <[email protected]>
@firecow firecow merged commit fcccb7e into firecow:master Apr 29, 2026
13 checks passed
@bcouetil bcouetil deleted the feat/workflow-rules-variables branch April 30, 2026 22:00
bcouetil added a commit to bcouetil/gitlab-ci-local that referenced this pull request Apr 30, 2026
Display the environment name in --list and --list-csv outputs, placed
just before the needs column. Jobs without an environment show an empty
value. The list-environment test expects workflow:rules:variables
resolution (PR firecow#1833) and will fail until that feature is merged.

Co-authored-by: Copilot <[email protected]>
bcouetil added a commit to bcouetil/gitlab-ci-local that referenced this pull request Apr 30, 2026
Display the environment name in --list and --list-csv outputs, placed
just before the needs column. Jobs without an environment show an empty
value. The list-environment test expects workflow:rules:variables
resolution (PR firecow#1833) and will fail until that feature is merged.

Co-authored-by: Copilot <[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.

Implement workflow:rules:variables

2 participants