From 5b97f8d063a32b5beadbcf5091ea61e92f9e7804 Mon Sep 17 00:00:00 2001 From: Constrat <56174894+Constrat@users.noreply.github.com> Date: Sat, 2 Nov 2024 12:39:07 +0100 Subject: [PATCH] tools: update validator.ps1 to return to starting directory after ending call --- tools/ResourceUpdater/validator.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/ResourceUpdater/validator.ps1 b/tools/ResourceUpdater/validator.ps1 index a1caa282dc..6d20303c5c 100644 --- a/tools/ResourceUpdater/validator.ps1 +++ b/tools/ResourceUpdater/validator.ps1 @@ -1,3 +1,5 @@ +Push-Location + # Stage changes otherwise git diff doesn't work git add . @@ -111,3 +113,5 @@ Write-Output "hasPngDiff: $hasPngDiff" Write-Output "diff: $diff" Write-Output "contains_png=$hasPngDiff" >> $env:GITHUB_OUTPUT Write-Output "changes=$diff" >> $env:GITHUB_OUTPUT + +Pop-Location