Use GEM_HOME for update_fastlane action (#10450)
Use GEM_HOME for update_fastlane action (#10450)

* Use GEM_HOME in update_fastlane

Until now the action used Gem.home to check for sudo requirement
when updating fastlane, but it fails if fastlane is installed with
the --user-install option.

With this commit the action first check for the GEM_HOME env var
and fallback to Gem.home if missing.

* Fix code style

hjanuschka/fastlane,nafu/fastlane,KrauseFx/fastlane,ashfurrow/fastlane,adellibovi/fastlane,dral3x/fastlane,bolom/fastlane,cpk1/fastlane,bolom/fastlane,revile/fastlane,brbulic/fastlane,matthewellis/fastlane,joshdholtz/fastlane,lacostej/fastlane,ExtremeMan/fastlane,joshdholtz/fastlane,icecrystal23/fastlane,jaleksynas/fastlane,bassrock/fastlane,ExtremeMan/fastlane,jaleksynas/fastlane,mgrebenets/fastlane,rimarsh/fastlane,nafu/fastlane,joshdholtz/fastlane,farkasseb/fastlane,luongm/fastlane,matthewellis/fastlane,Econa77/fastlane,matthewellis/fastlane,manuyavuz/fastlane,daveanderson/fastlane,dral3x/fastlane,rimarsh/fastlane,tmtrademarked/fastlane,brbulic/fastlane,allewun/fastlane,allewun/fastlane,dral3x/fastlane,taquitos/fastlane,rimarsh/fastlane,adellibovi/fastlane,ashfurrow/fastlane,mgrebenets/fastlane,luongm/fastlane,cpk1/fastlane,lacostej/fastlane,lacostej/fastlane,brbulic/fastlane,ExtremeMan/fastlane,manuyavuz/fastlane,rimarsh/fastlane,lacostej/fastlane,hjanuschka/fastlane,KrauseFx/fastlane,javibm/fastlane,farkasseb/fastlane,fastlane/fastlane,kazuhidet/fastlane,cpk1/fastlane,adamcohenrose/fastlane,joshdholtz/fastlane,icecrystal23/fastlane,bolom/fastlane,nafu/fastlane,allewun/fastlane,brbulic/fastlane,mgrebenets/fastlane,icecrystal23/fastlane,KrauseFx/fastlane,luongm/fastlane,adellibovi/fastlane,fastlane/fastlane,adellibovi/fastlane,SiarheiFedartsou/fastlane,javibm/fastlane,bolom/fastlane,marcelofabri/fastlane,tmtrademarked/fastlane,bassrock/fastlane,icecrystal23/fastlane,keatongreve/fastlane,adellibovi/fastlane,ExtremeMan/fastlane,jaleksynas/fastlane,Econa77/fastlane,manuyavuz/fastlane,javibm/fastlane,ashfurrow/fastlane,icecrystal23/fastlane,allewun/fastlane,icecrystal23/fastlane,adellibovi/fastlane,luongm/fastlane,bolom/fastlane,keatongreve/fastlane,marcelofabri/fastlane,daveanderson/fastlane,luongm/fastlane,luongm/fastlane,farkasseb/fastlane,bolom/fastlane,kazuhidet/fastlane,hjanuschka/fastlane,jaleksynas/fastlane,keatongreve/fastlane,marcelofabri/fastlane,mgrebenets/fastlane,taquitos/fastlane,cpk1/fastlane,adamcohenrose/fastlane,bassrock/fastlane,ffittschen/fastlane,mgrebenets/fastlane,revile/fastlane,hjanuschka/fastlane,lacostej/fastlane,cpk1/fastlane,jaleksynas/fastlane,Econa77/fastlane,ffittschen/fastlane,keatongreve/fastlane,dral3x/fastlane,jaleksynas/fastlane,mgrebenets/fastlane,manuyavuz/fastlane,farkasseb/fastlane,nafu/fastlane,farkasseb/fastlane,adellibovi/fastlane,mbogh/fastlane,daveanderson/fastlane,kohtenko/fastlane,kazuhidet/fastlane,javibm/fastlane,jaleksynas/fastlane,fastlane/fastlane,mbogh/fastlane,tmtrademarked/fastlane,adamcohenrose/fastlane,javibm/fastlane,rimarsh/fastlane,tmtrademarked/fastlane,SiarheiFedartsou/fastlane,allewun/fastlane,revile/fastlane,rimarsh/fastlane,adamcohenrose/fastlane,bassrock/fastlane,kazuhidet/fastlane,ashfurrow/fastlane,allewun/fastlane,joshdholtz/fastlane,farkasseb/fastlane,ashfurrow/fastlane,ExtremeMan/fastlane,mbogh/fastlane,keatongreve/fastlane,farkasseb/fastlane,mgrebenets/fastlane,manuyavuz/fastlane,Econa77/fastlane,manuyavuz/fastlane,rimarsh/fastlane,kazuhidet/fastlane,mbogh/fastlane,nafu/fastlane,daveanderson/fastlane,mbogh/fastlane,ExtremeMan/fastlane,tmtrademarked/fastlane,revile/fastlane,bassrock/fastlane,dral3x/fastlane,kohtenko/fastlane,SiarheiFedartsou/fastlane,matthewellis/fastlane,allewun/fastlane,tmtrademarked/fastlane,keatongreve/fastlane,Econa77/fastlane,manuyavuz/fastlane,KrauseFx/fastlane,orta/fastlane,ffittschen/fastlane,SiarheiFedartsou/fastlane,hjanuschka/fastlane,daveanderson/fastlane,cpk1/fastlane,marcelofabri/fastlane,fastlane/fastlane,javibm/fastlane,luongm/fastlane,marcelofabri/fastlane,mbogh/fastlane,SiarheiFedartsou/fastlane,mbogh/fastlane,dral3x/fastlane,SiarheiFedartsou/fastlane,matthewellis/fastlane,bassrock/fastlane,ashfurrow/fastlane,adamcohenrose/fastlane,revile/fastlane,brbulic/fastlane,joshdholtz/fastlane,hjanuschka/fastlane,javibm/fastlane,kazuhidet/fastlane,bolom/fastlane,taquitos/fastlane,brbulic/fastlane,nafu/fastlane,adamcohenrose/fastlane,revile/fastlane,matthewellis/fastlane,ffittschen/fastlane,daveanderson/fastlane,taquitos/fastlane,keatongreve/fastlane,fastlane/fastlane,kazuhidet/fastlane,revile/fastlane,fastlane/fastlane,KrauseFx/fastlane,ffittschen/fastlane,ffittschen/fastlane,marcelofabri/fastlane,SiarheiFedartsou/fastlane,nafu/fastlane,Econa77/fastlane,taquitos/fastlane,marcelofabri/fastlane,KrauseFx/fastlane,hjanuschka/fastlane,ashfurrow/fastlane,brbulic/fastlane,joshdholtz/fastlane,taquitos/fastlane,tmtrademarked/fastlane,KrauseFx/fastlane,cpk1/fastlane,Econa77/fastlane,matthewellis/fastlane,ExtremeMan/fastlane,ffittschen/fastlane,dral3x/fastlane,orta/fastlane,taquitos/fastlane,adamcohenrose/fastlane,lacostej/fastlane,daveanderson/fastlane