When you get two actions and the dragon has 5 or 10 HP and you slay it, you win the game.
Then, when you use the second action, you win again instantly.
You can see this here: https://youtu.be/y1lHSrks_6g
(still uploading at the time of writing this)