From c3f67ea5c963d6cf1aa5ded13a2632dc3e4ad980 Mon Sep 17 00:00:00 2001 From: Dmitri Bourlatchkov Date: Fri, 6 Jan 2023 12:12:02 -0500 Subject: [PATCH] Remove grep -v from the HISTORY.rst generation script (#5778) This `grep` invocation produces exit code 1 if there are no lines in the input and breaks the workflow. Auto-generated commit log entries with `[release]` messages are already excluded by the author filter in the `git log` command. --- .github/workflows/release-create.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-create.yml b/.github/workflows/release-create.yml index 2e538f45f3b..527e692e427 100644 --- a/.github/workflows/release-create.yml +++ b/.github/workflows/release-create.yml @@ -177,7 +177,7 @@ jobs: git log --perl-regexp --author '^(?!.*dependabot(-preview)?|.*renovate|.*nessie-release-workflow).*$'\ --format='format:* %s' ${LAST_TAG}..HEAD python/ |\ - grep -v '^\* \[release\] .*$' >> /tmp/HISTORY.rst + >> /tmp/HISTORY.rst tail +4 python/HISTORY.rst >> /tmp/HISTORY.rst