There are several problems with your strategy.
If earnings are coming shortly, more than likely, you're paying a volatility premium for the options, Once earnings are released, IV contraction will cause the premiums to drop. If there's a lot of pre-earnings expansion as well as post...