Skip to content

Commit e408dab

Browse files
committed
Add support to shared workflow.
1 parent 8ff53c5 commit e408dab

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/reusable-nox-matrix.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,18 @@ name: Run sanity, unit, and integration tests
1515
Whether code coverage should be collected and uploaded to codecov.io.
1616
required: false
1717
default: false
18+
min-ansible-core:
19+
type: string
20+
description: >-
21+
Minimum ansible-core version the matrix should include.
22+
required: false
23+
default: ""
24+
max-ansible-core:
25+
type: string
26+
description: >-
27+
Maximum ansible-core version the matrix should include.
28+
required: false
29+
default: ""
1830
secrets:
1931
CODECOV_TOKEN:
2032
required: false
@@ -38,6 +50,9 @@ jobs:
3850
id: generate-matrix
3951
with:
4052
sessions: matrix-generator
53+
extra-args: >-
54+
${{ min-ansible-core && '--min-ansible-core ' || '' }}${{ min-ansible-core }}
55+
${{ max-ansible-core && '--max-ansible-core ' || '' }}${{ max-ansible-core }}
4156
4257
# Sessions with coverage
4358

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
minor_changes:
2-
- "Allow to specify minimum/maximum ansible-core version to ``matrix-generator`` session (https://github.com/ansible-community/antsibull-nox/issues/113, https://github.com/ansible-community/antsibull-nox/pull/115)."
2+
- "Allow to specify minimum/maximum ansible-core version to ``matrix-generator`` session and shared workflow (https://github.com/ansible-community/antsibull-nox/issues/113, https://github.com/ansible-community/antsibull-nox/pull/115)."

0 commit comments

Comments
 (0)