Prevent CI/CD for release branches for forks

A lot of time is wasted in forks for CI/CD when people rebase their master (or other release branches) and push, since they inherit the CI/CD configurations for those branches.

I tried disabling CI/CD specifically in the master branch for my fork, which worked fine until I wanted to do a merge request from an issue branch created off of master. The MR wants to include that commit disabling CI/CD along with the actual issue fix.

From what I can tell, there’s no way to get gitlab to ignore that commit, which means apparently my entire fork now has to be deleted and regenerated w/o the CI/CD commit for me to do MRs and I’ll be back where I started not being able to exclude the release branches in my fork from wasteful and completely unnecessary CI/CD runs.

Is there some way I can get this to work so my fork doesn’t waste resources (and also then block necessary CI/CD by consuming jobs)?