The GreenCard makes you a US Resident. It does not make you a resident of a particular state.
Did you work in CA?
If you lived in CA for 4 months, then you would be a Part Year Resident, if you did not maintain a home elsewhere.
If you maintained a home elsewhere and CA was only like a place to work or visit, then you would be considered a CA nonresident and only need to file a CA return if you earned income while there.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"