fix: follow PEP 440 standard for supported ansible versions

Signed-off-by: gardar <gardar@users.noreply.github.com>
This commit is contained in:
gardar 2023-03-05 11:55:01 +00:00
parent d92cdcd0ba
commit 1f4900f9b6
No known key found for this signature in database
GPG key ID: 00872BAF59D98753
2 changed files with 2 additions and 2 deletions

View file

@ -37,7 +37,7 @@ jobs:
id: supported-ansible-versions
uses: mikefarah/yq@master
with:
cmd: yq -o json -I=0 '.requires_ansible | split(",") | .[] |= sub("(.*)", "stable-${1}")' meta/runtime.yml
cmd: yq -o json -I=0 '.requires_ansible | split(",") | .[] |= sub("(.*?)(\d+\.\d+)"; "stable-${2}")' meta/runtime.yml
ansible-test-sanity:
uses: ./.github/workflows/ansible-test-sanity.yml

View file

@ -1,2 +1,2 @@
---
requires_ansible: "2.9,2.10,2.11,2.12,2.13,2.14"
requires_ansible: "~=2.9,~=2.10,~=2.11,~=2.12,~=2.13,~=2.14"