Fixing the issue when status check per rule matches multiple actions (#29631) (#29655)
Backport #29631 by @charles7668
Close #29628
rule
```
Test / Build*
Test / Build *
Test / Build 2*
Test / Build 1*
```
![image](https://github.com/go-gitea/gitea/assets/
30816317/
19bef0a9-fa97-43c5-887b-
dece76064aa8)
rule2
```
Test / Build*
Test / Build 1*
```
![image](https://github.com/go-gitea/gitea/assets/
30816317/
19bef0a9-fa97-43c5-887b-
dece76064aa8)
rule3
```
Test / Build*
Test / Build 1*
NotExist*
```
![image](https://github.com/go-gitea/gitea/assets/
30816317/
f6a5e832-2e1b-4049-915b-
45bec5ef070c)
Co-authored-by: charles <30816317+charles7668@users.noreply.github.com>
Co-authored-by: Zettat123 <zettat123@gmail.com>