I want to run an action to check if my code compiles whenever I push to dev branch. But since my actions are in main it never runs whenever I push to dev branch. I have tried to understand the documentation but it really isn't any help. Here is the code:
name: check-compile
on:
push:
branches:
- dev