This feature provides a workaround for the following limitations:
Unable to set environment variables on a job that calls a re-usable workflow
Unable to reference secrets when specifying the inputs to a re-useable workflow
Using the native functionality to achieve both of the above scenarios, requires the re-useable workflow to have knowledge of any environment variables or secrets that a calling workflow may wish to reference. This is undesirable for a highly generalised re-usable workflow.
Also includes two new composite actions that encapsulate preparing and applying the specified environment variables and secrets.
prepare-env-vars-and-secrets - used in the top-level workflow before calling the scripted-build-pipeline re-usable workflow
set-env-vars-and-secrets - used by the scripted-build-pipeline re-usable workflow to dynamically inject environment variables into the current job
This feature provides a workaround for the following limitations:
Using the native functionality to achieve both of the above scenarios, requires the re-useable workflow to have knowledge of any environment variables or secrets that a calling workflow may wish to reference. This is undesirable for a highly generalised re-usable workflow.
Also includes two new composite actions that encapsulate preparing and applying the specified environment variables and secrets.
prepare-env-vars-and-secrets
- used in the top-level workflow before calling thescripted-build-pipeline
re-usable workflowset-env-vars-and-secrets
- used by thescripted-build-pipeline
re-usable workflow to dynamically inject environment variables into the current job