Move the logic for determining version to the CI/CD workflow because deploy to environment workflow should be possible to use with arbitrary version for workflow dispatch.
Related Issue(s)
{issue number}
Verification
[X] Your code builds clean without any errors or warnings
[X] Manual testing done (required)
[X] Relevant automated test added (if you find this hard, leave it and we'll help out)
[X] All tests run green
Documentation
[X] User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)
Description
Move the logic for determining version to the CI/CD workflow because deploy to environment workflow should be possible to use with arbitrary version for workflow dispatch.
Related Issue(s)
{issue number}
Verification
Documentation