I have my own code of a software, purely coded by me. I am intending to open source it, GPLv3 or Apache 2.0. Then I will add them to Github to let others get benefits of source code and contribute back whenever needed to my software.
At the same time, I am intending to dual-license my software to let other companies use my software without limitations and restrictions of GPLv3 or Apache 2.0 licenses terms and conditions.
Now, whatever contributions get added to my open-source licensed software, can I add them simultaneously to my proprietary version of the same software? is it legal? Is it ethical?