From 19d77c4f9b2f107a92b7c101f7360a739acf96bc Mon Sep 17 00:00:00 2001 From: Shiying Chen Date: Wed, 17 Apr 2024 09:55:46 +0800 Subject: [PATCH] Change the trigger for pr check workflow (#435) * change trigger * remove env --- .github/workflows/azure-login-pr-check.yml | 46 ++-------------------- 1 file changed, 3 insertions(+), 43 deletions(-) diff --git a/.github/workflows/azure-login-pr-check.yml b/.github/workflows/azure-login-pr-check.yml index ba8e198c1..279cf3cd7 100644 --- a/.github/workflows/azure-login-pr-check.yml +++ b/.github/workflows/azure-login-pr-check.yml @@ -1,13 +1,12 @@ name: pr-check on: - pull_request_target: + pull_request: branches: - master - 'releases/*' jobs: az-login-test: - environment: Automation test runs-on: windows-latest steps: - name: Checkout from PR branch @@ -28,44 +27,5 @@ jobs: - name: Build GitHub Action run: npm run build - - name: 'Az CLI login with subscription' - uses: ./ - with: - creds: ${{ secrets.AZURE_CREDENTIALS }} - - - run: | - az account show --output none - az vm list --output none - - - name: 'Az CLI login without subscription' - uses: ./ - with: - creds: ${{ secrets.AZURE_CREDENTIALS_NO_SUB }} - allow-no-subscriptions: true - - - run: | - az account show --output none - # az vm list --output none - - - name: 'Azure PowerShell login with subscription' - uses: ./ - with: - creds: ${{ secrets.AZURE_CREDENTIALS }} - enable-AzPSSession: true - - - uses: azure/powershell@v1 - with: - inlineScript: "(Get-AzContext).Environment.Name" - azPSVersion: "latest" - - # - name: 'Azure PowerShell login without subscription' - # uses: ./ - # with: - # creds: ${{secrets.AZURE_CREDENTIALS_NO_SUB}} - # enable-AzPSSession: true - # allow-no-subscriptions: true - - # - uses: azure/powershell@v1 - # with: - # inlineScript: "Get-AzContext" - # azPSVersion: "latest" + - name: Run mock test + run: npm run test