Skip to content

Commit

Permalink
[Release|CI/CD] Fix audiences changelog template (#6444)
Browse files Browse the repository at this point in the history
This PR addresses an issue mentioned
[here](#6424 (comment)).
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.
  • Loading branch information
EgorPopelyaev committed Nov 13, 2024
1 parent d3eb813 commit 68cb923
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-30_publish_release_draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,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
Expand Down
2 changes: 1 addition & 1 deletion scripts/release/templates/audience.md.tera
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down

0 comments on commit 68cb923

Please sign in to comment.