How can I get the name of the user that approved the deployment and echo the information into a script step?
Here’s how I’ve setup azure devops pipeline yml with approval requirement:
- set up an environment and define the user that can approve it
- have the following stage in my yml
stages:
- stage: authorise_deployment`
jobs:
- deployment: deploy
environment: env
strategy:
runOnce:
deploy:
steps:
- task: Bash@3
inputs:
targetType: 'inline'
script: echo 'Name of approver'