Hi Sajith,
Environment variables in the yml file are for use during the build. They are not available for use when your application is running.
https://docs.github.com/en/actions/learn-github-actions/variables
Please click Accept Answer and upvote if the above was helpful.
Thanks.
-TP