Merge pull request #9 from xoxys/fix-meta-deps

use for loop instead of jinja filter
This commit is contained in:
Robert Kaussow 2020-03-08 22:55:36 +01:00 committed by GitHub
commit ce216b41dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 8 deletions

View File

@ -54,9 +54,7 @@ branches:
strict: true strict: true
contexts: contexts:
- continuous-integration/drone/pr - continuous-integration/drone/pr
enforce_admins: false enforce_admins: null
restrictions: restrictions: null
users: []
teams: []
... ...

View File

@ -4,10 +4,13 @@
{% if meta | deep_get(meta, "dependencies.value") %} {% if meta | deep_get(meta, "dependencies.value") %}
{% if meta.dependencies.value is mapping %} {% if meta.dependencies.value is mapping %}
{{ meta.dependencies.value.dependencies | to_nice_yaml(indent=0) }} {% set deps = meta.dependencies.value.dependencies %}
{% else %} {% else %}
{{ meta.dependencies.value | to_nice_yaml(indent=0) }} {% set deps = meta.dependencies.value %}
{% endif %} {% endif %}
{% for item in deps %}
* {{ item }}
{% endfor %}
{% else %} {% else %}
None. None.
{% endif %} {% endif %}

View File

@ -4,10 +4,13 @@
{% if meta | deep_get(meta, "dependencies.value") %} {% if meta | deep_get(meta, "dependencies.value") %}
{% if meta.dependencies.value is mapping %} {% if meta.dependencies.value is mapping %}
{{ meta.dependencies.value.dependencies | to_nice_yaml(indent=0) }} {% set deps = meta.dependencies.value.dependencies %}
{% else %} {% else %}
{{ meta.dependencies.value | to_nice_yaml(indent=0) }} {% set deps = meta.dependencies.value %}
{% endif %} {% endif %}
{% for item in deps %}
* {{ item }}
{% endfor %}
{% else %} {% else %}
None. None.
{% endif %} {% endif %}