If the action executes and there's never been a release before, it will fail. Adding ignore_missing fixes it:
When the flag is set and the previous release commit was not found in the repository, will create a release with the default commits count instead of failing the command.
You can see this PR working here.
If the action executes and there's never been a release before, it will fail. Adding
ignore_missing
fixes it: