Skip to content

Instantly share code, notes, and snippets.

View Myrddraal's full-sized avatar

David Myrddraal

  • London, UK
View GitHub Profile
@Myrddraal
Myrddraal / Test-ChangesMadeInPath.ps1
Last active August 28, 2024 15:46
Skip infrastructure deployments if there are no changes to deploy (Azure Pipelines)
[CmdletBinding()]
param (
$authorisation,
$pathFilter,
$collectionUri,
$project,
$buildId
)
$changesUrl = "$collectionUri/$project/_apis/build/builds/$buildId/changes?api-version=6.0"