Skip to content

Commit

Permalink
Update azure-pipelines-61.yml for Azure Pipelines [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
kmadof committed Jun 2, 2021
1 parent 8271bf6 commit f1d02d0
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion azure-pipelines-61.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,39 @@ steps:
- bash: |
echo '$(my-actual)'
echo '${{ parameters.desired }}'
- bash: |
echo "##vso[task.setvariable variable=skipsubsequent]false"
if [ "${{ parameters.desired }}" == "$(my-actual)" ]; then
echo "##vso[task.setvariable variable=skipsubsequent]true"
fi
- bash: echo "EXECUTION REQUIRED ${DESIRED} vs ${ACTUAL})"
condition: and(succeeded(), eq(variables['skipsubsequent'], 'false'))
displayName: "Detected: Necessary"
env:
ACTAUL: $(my-actual)
DESIRED: ${{ parameters.desired }}

- bash: echo "execution NOT required ${DESIRED} vs ${ACTUAL})"
condition: and(succeeded(), eq(variables['skipsubsequent'], 'true'))
displayName: "Detected: Unnecessary"
env:
ACTAUL: $(my-actual)
DESIRED: ${{ parameters.desired }}

- bash: echo "EXECUTION REQUIRED ${DESIRED} vs ${ACTUAL})"
condition: and(succeeded(), ne('${{ parameters.desired }}', '$(my-actual)'))
displayName: "Detected: Necessary"
enabled: false
env:
ACTAUL: $(my-actual)
DESIRED: ${{ parameters.desired }}

- bash: echo "execution NOT required ${DESIRED} vs ${ACTUAL})"
condition: and(succeeded(), eq('${{ parameters.desired }}', '$(my-actual)'))
displayName: "Detected: Unnecessary"
enabled: false
env:
ACTAUL: $(my-actual)
DESIRED: ${{ parameters.desired }}

0 comments on commit f1d02d0

Please sign in to comment.