From daac1c963c7c81043880402d24f58b9bb79a9f73 Mon Sep 17 00:00:00 2001 From: Freddy Kristiansen Date: Mon, 29 Nov 2021 10:11:26 +0100 Subject: [PATCH] ne --- .github/workflows/Collect.yaml | 2 +- .github/workflows/Deploy.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }