kubewarden / github-actions

GitHub actions used by the Kubewarden project
https://kubewarden.io
Apache License 2.0
4 stars 7 forks source link

fix: Correctly check artifacthub for policies that use tags #55

Closed viccuad closed 1 year ago

viccuad commented 1 year ago

Description

Relates to https://github.com/kubewarden/kubewarden-controller/issues/389.

Obtain tag string correctly For reusable-test-policy- jobs: check artifacthub-pkg.yml, but ignore the version field, as the tag is not yet created. For reusable-release-policy- jobs: check artifacthub-pkg.yml, and check the version field, as the tag is created.

Test

Additional Information

Tradeoff

Potential improvement

Needing to manually do make --always-make artifacthub-pkg.yml VERSION=0.1.8 is not very discoverable for users. At least it is included in the error string though.

viccuad commented 1 year ago

This will be tagged as v2.0.1, and the v2 tag pointing to it.