Throughout execution yaml file for CI/CD process in GitLab I am using
sfdx force:data:soql:query -q "SELECT id FROM UserRole where name='CER' " -t -u email@example.com to find proper id for UserRole CER (as result i catch id). I want to assign this value to some variable and after that use it in next sfdx command (replace RoleId)
- sfdx force:data:record:update -s User -u firstname.lastname@example.org -w "Name='User User'" -v "UserRoleId=RoleId" .
Please tell me how this can be done? Thank you!