Stack define in bitrise.yml fetch from repository doesn't affect

I have updated the stack in the bitrise.yml and we use fetch from the repository but it doesn’t affect. We need to go to Workflow → Stack in Bitrise UI to change it. When changing it, it warns that the stack needs to be changed in the bitrise.yml in the main branch but after that, it is affected. Is it intended?