Create Release only when there is a new commit

I added create-release in cron.
But, it will create release every hour.
How to create Release only when there is a new commit.
Current yaml


Thank you.

Why not trigger on push? That would only run when there is a new commit.

Because, so much many commits and pushes in hour.
I want to create a release only once an hour

One possible (but slightly complicated) way can be to get last commit timestamp using this API and then use the if statement to only run the release step if the the last commit has happened in the last one hour.

Oh, okay thank you
I will try it