Set enviroment variable for solution via Github action #494
-
Hello, Example: How can I achieve this ? Is there something like an input parameter for the github action ? I cannot find anything. Or if it's not possible via the GitHub action, can I somehow achive this via find and replace when the solution is unpacked ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @LeonardSchwenk, I hope you are doing well. Inside the import-solution GitHub action, you can then set the "deployment-settings-file" input with the path of the relevant deployment settings file (the one for the targeted environment) in your repository. And don't forget to set the "use-deployment-settings-file" input to "true" 😉 I hope this will help you. Raph |
Beta Was this translation helpful? Give feedback.
Hi @LeonardSchwenk,
I hope you are doing well.
I think what you are looking for is described in the following Microsoft documentation page: Pre-populate connection references and environment variables for automated deployments
Inside the import-solution GitHub action, you can then set the "deployment-settings-file" input with the path of the relevant deployment settings file (the one for the targeted environment) in your repository. And don't forget to set the "use-deployment-settings-file" input to "true" 😉
I hope this will help you.
Have a great day.
Raph