diff --git a/.github/workflows/Collect.yaml b/.github/workflows/Collect.yaml index 806ed4fca..f465c2e12 100644 --- a/.github/workflows/Collect.yaml +++ b/.github/workflows/Collect.yaml @@ -24,7 +24,7 @@ jobs: - name: CheckUser run: | - if ("$ENV:GITHUB_REPOSITORY" -eq "microsoft/AL-Go" -and "$ENV:GITHUB_ACTOR" -eq "freddydk") { + if ("$ENV:GITHUB_REPOSITORY" -eq "microsoft/AL-Go" -and "$ENV:GITHUB_ACTOR" -ne "freddydk") { Write-Host "::Error::You cannot run deploy and collect in the microsoft/AL-Go repo" exit 1 } diff --git a/.github/workflows/Deploy.yaml b/.github/workflows/Deploy.yaml index 37361a701..4cee352cb 100644 --- a/.github/workflows/Deploy.yaml +++ b/.github/workflows/Deploy.yaml @@ -24,7 +24,7 @@ jobs: - name: CheckUser run: | - if ("$ENV:GITHUB_REPOSITORY" -eq "microsoft/AL-Go" -and "$ENV:GITHUB_ACTOR" -eq "freddydk") { + if ("$ENV:GITHUB_REPOSITORY" -eq "microsoft/AL-Go" -and "$ENV:GITHUB_ACTOR" -ne "freddydk") { Write-Host "::Error::You cannot run deploy and collect in the microsoft/AL-Go repo" exit 1 }