[stable-3] Fix CI (#1087)

* Forgot community.general.

(cherry picked from commit 2108c3dc71)

* Use matching c.g branch for older ansible-core versions.

* Fix GH workflow.
This commit is contained in:
Felix Fontein 2025-06-08 20:50:18 +02:00 committed by GitHub
parent 9b41df8758
commit 5e8a62acbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View File

@ -218,7 +218,7 @@ jobs:
;
git clone --depth=1 --single-branch --branch stable-2 https://github.com/ansible-collections/community.crypto.git ../../community/crypto
;
git clone --depth=1 --single-branch https://github.com/ansible-collections/community.general.git ../../community/general
git clone --depth=1 --single-branch --branch stable-9 https://github.com/ansible-collections/community.general.git ../../community/general
;
git clone --depth=1 --single-branch --branch stable-1 https://github.com/ansible-collections/community.library_inventory_filtering.git ../../community/library_inventory_filtering_v1
${{ matrix.extra-constraints && format('; echo ''{0}'' >> tests/utils/constraints.txt', matrix.extra-constraints) || '' }}

View File

@ -3,24 +3,35 @@
# SPDX-FileCopyrightText: 2025 Felix Fontein <felix@fontein.de>
[collection_sources]
"community.general" = "git+https://github.com/ansible-collections/community.general.git,main"
"community.internal_test_tools" = "git+https://github.com/ansible-collections/community.internal_test_tools.git,main"
"community.library_inventory_filtering_v1" = "git+https://github.com/ansible-collections/community.library_inventory_filtering.git,stable-1"
[collection_sources_per_ansible.'2.11']
"community.crypto" = "git+https://github.com/ansible-collections/community.crypto.git,stable-2"
# community.general's stable-8 branch needs ansible-core >= 2.13
"community.general" = "git+https://github.com/ansible-collections/community.general.git,stable-7"
[collection_sources_per_ansible.'2.12']
"community.crypto" = "git+https://github.com/ansible-collections/community.crypto.git,stable-2"
# community.general's stable-8 branch needs ansible-core >= 2.13
"community.general" = "git+https://github.com/ansible-collections/community.general.git,stable-7"
[collection_sources_per_ansible.'2.13']
"community.crypto" = "git+https://github.com/ansible-collections/community.crypto.git,stable-2"
# community.general's stable-10 branch needs ansible-core >= 2.15
"community.general" = "git+https://github.com/ansible-collections/community.general.git,stable-9"
[collection_sources_per_ansible.'2.14']
"community.crypto" = "git+https://github.com/ansible-collections/community.crypto.git,stable-2"
# community.general's stable-10 branch needs ansible-core >= 2.15
"community.general" = "git+https://github.com/ansible-collections/community.general.git,stable-9"
[collection_sources_per_ansible.'2.15']
# community.crypto's main branch needs ansible-core >= 2.17
"community.crypto" = "git+https://github.com/ansible-collections/community.crypto.git,stable-2"
# community.general's main branch needs ansible-core >= 2.16
"community.general" = "git+https://github.com/ansible-collections/community.general.git,stable-10"
[collection_sources_per_ansible.'2.16']
# community.crypto's main branch needs ansible-core >= 2.17