Before you start
Summary
Because it has both the pull_request and push triggers.
Steps to reproduce
Submit a PR and trigger workflow
Expected result
Single build and test run for each PR commit. Another one after merging to main
Actual result
Double runs for every PR commit
Affected platforms
Version
1.2.1
Environment
No response
Logs, stack traces, or build output
Possible cause or fix
No response
Screenshots or anything else

Before you start
Summary
Because it has both the pull_request and push triggers.
Steps to reproduce
Submit a PR and trigger workflow
Expected result
Single build and test run for each PR commit. Another one after merging to main
Actual result
Double runs for every PR commit
Affected platforms
Version
1.2.1
Environment
No response
Logs, stack traces, or build output
Possible cause or fix
No response
Screenshots or anything else