Skip to content

Commit

Permalink
invert condition
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanMaron committed May 7, 2024
1 parent 83c0e7a commit 40ae3e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/triggerBuildForNewVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
Write-Host "Latest version: $($extensionVersions.results[0].extensions[0].versions[0].version)"
$latestRelease = irm https://api.github.com/repos/StefanMaron/BusinessCentral.LinterCop/releases/latest
Write-Host "Latest release: $($latestRelease.assets.Name)"
if ($latestRelease.assets.Name -contains "BusinessCentral.LinterCop.AL-$($extensionVersions.results[0].extensions[0].versions[0].version).dll") {
if ($latestRelease.assets.Name -notcontains "BusinessCentral.LinterCop.AL-$($extensionVersions.results[0].extensions[0].versions[0].version).dll") {
$secureToken = ConvertTo-SecureString ${{ secrets.GITHUB_TOKEN }} -AsPlainText
irm -Method Post -ContentType application/json -Body '{"ref":"master"}' -Uri https://api.github.com/repos/stefanmaron/BusinessCentral.LinterCop/actions/workflows/14874791/dispatches -Authentication Bearer -Token $secureToken
Write-Host "Build triggered"
Expand Down

0 comments on commit 40ae3e2

Please sign in to comment.