From 4dd0d30908767169d760a60073052e98f043052c Mon Sep 17 00:00:00 2001 From: Shiying Chen Date: Wed, 17 Apr 2024 10:12:21 +0800 Subject: [PATCH] Change the trigger for pr-test (#147) --- .github/workflows/pr-test.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index add39f8e..8b7e0011 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -1,6 +1,6 @@ name: pr-test on: - pull_request_target: + pull_request: branches: - master - releases/* @@ -9,7 +9,6 @@ on: jobs: basic_test: - environment: Automation Test runs-on: ubuntu-latest steps: - name: Check out source code @@ -29,24 +28,18 @@ jobs: run: | ncc build -C -m src/entrypoint.ts - - uses: azure/login@v1 - with: - creds: ${{ secrets.AZURE_CREDENTIALS }} - - name: Test - Postive uses: ./ with: azcliversion: 2.30.0 inlineScript: | az --version - az account show --output none - name: Default version test - Postive uses: ./ with: inlineScript: | az --version - az account show --output none - name: Invalid Version test - Negative id: test1 @@ -80,7 +73,6 @@ jobs: core.setFailed('Last action should fail but not. Please check it.') os_test: - environment: Automation Test runs-on: windows-latest steps: - name: Check out source code @@ -100,10 +92,6 @@ jobs: run: | ncc build -C -m src/entrypoint.ts - - uses: azure/login@v1 - with: - creds: ${{ secrets.AZURE_CREDENTIALS }} - - name: Invalid OS - Negative id: test3 continue-on-error: true