Skip to content

Commit

Permalink
Remove grep -v from the HISTORY.rst generation script (#5778)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dimas-b authored Jan 6, 2023
1 parent e53f86a commit c3f67ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release-create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3f67ea

Please sign in to comment.