Skip to content
Snippets Groups Projects
Unverified Commit 34d2ff85 authored by Egor_P's avatar Egor_P Committed by GitHub
Browse files

[Release|CI/CD] Fix audiences changelog template (#6444)

This PR addresses an issue mentioned
[here](https://github.com/paritytech/polkadot-sdk/issues/6424#issuecomment-2467042441).
The problem was that when the prdoc file has two audiences, but only one
description like in
[prdoc_5660](https://github.com/paritytech/polkadot-sdk/blob/master/prdoc/1.16.0/pr_5660.prdoc)
it was ignored by the template.
parent a875f180
No related merge requests found
Pipeline #505320 waiting for manual action with stages
in 54 minutes and 15 seconds
......@@ -71,7 +71,7 @@ jobs:
- name: Prepare tooling
run: |
URL=https://github.com/chevdor/tera-cli/releases/download/v0.2.4/tera-cli_linux_amd64.deb
URL=https://github.com/chevdor/tera-cli/releases/download/v0.4.0/tera-cli_linux_amd64.deb
wget $URL -O tera.deb
sudo dpkg -i tera.deb
......
......@@ -4,7 +4,7 @@
{% for file in prdoc -%}
{% for doc_item in file.content.doc %}
{%- if doc_item.audience == env.TARGET_AUDIENCE %}
{%- if doc_item.audience is containing(env.TARGET_AUDIENCE) %}
#### [#{{file.doc_filename.number}}]: {{ file.content.title }}
{{ doc_item.description }}
{% endif -%}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment