Conforme escrito por @phoog:
It's a good question, but if I were you I would just plan to apply for a new eTA in that case to be on the safe side, because the cost is so low. Also, the number they ask for is your alien registration number, or A number, which will not change. The only thing that will change is the expiration date of your green card.