From ce9c5d6b225733290f67a9086d45ed283452012c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Saparelli?= Date: Wed, 22 Mar 2023 14:55:16 +1300 Subject: [PATCH] Always add changelog section even if it's not used later (#552) --- .github/workflows/release-pr.ejs | 5 +++++ .github/workflows/release-pr.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-pr.ejs b/.github/workflows/release-pr.ejs index 0de91a3..3e3e857 100644 --- a/.github/workflows/release-pr.ejs +++ b/.github/workflows/release-pr.ejs @@ -42,6 +42,7 @@ To trigger builds initially: either close and then immediately re-open this PR o _Edit release notes into the section below:_ +<% if (crate.name == "watchexec-cli") { %> ### Release notes _Software development often involves running the same commands over and over. Boring! Watchexec is a simple, standalone tool that watches a path and runs a command whenever it detects modifications. Install it today with [`cargo-binstall watchexec-cli`](https://github.com/cargo-bins/cargo-binstall), from the binaries below, find it [in your favourite package manager](https://github.com/watchexec/watchexec/blob/main/doc/packages.md), or build it from source with `cargo install watchexec-cli`._ @@ -52,5 +53,9 @@ _Software development often involves running the same commands over and over. Bo #### Other changes: +- +<% } else { %> +### Changelog - <% } %> +<% } %> diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index 6e0e0fd..c40ad32 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -43,7 +43,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} version: ${{ inputs.version }} crate-path: crates/${{ inputs.crate }} - pr-release-notes: ${{ inputs.crate == 'cli' }} + pr-release-notes: true pr-label: release pr-template-file: .github/workflows/release-pr.ejs env: