From 66d416ec246cb4f7d1a8ae1a7738481823e22316 Mon Sep 17 00:00:00 2001 From: zjhe Date: Thu, 12 Sep 2024 12:57:20 +0800 Subject: [PATCH] use pull_request event and environment variables --- .github/workflows/e2e.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 8ea3c548c..8bbab3adf 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -33,9 +33,9 @@ jobs: echo "change files" $ALL_CHANGED_FILES export ARM_OIDC_REQUEST_TOKEN=$ACTIONS_ID_TOKEN_REQUEST_TOKEN export ARM_OIDC_REQUEST_URL=$ACTIONS_ID_TOKEN_REQUEST_URL - export ARM_SUBSCRIPTION_ID=${{ vars.AZURE_SUBSCRIPTION_ID }} - export ARM_TENANT_ID=${{ vars.AZURE_TENANT_ID }} - export ARM_CLIENT_ID=${{ vars.AZURE_CLIENT_ID }} + export ARM_SUBSCRIPTION_ID=${{ env.AZURE_SUBSCRIPTION_ID }} + export ARM_TENANT_ID=${{ env.AZURE_TENANT_ID }} + export ARM_CLIENT_ID=${{ env.AZURE_CLIENT_ID }} docker run --rm -v $(pwd):/src -w /src/test --network=host -e ARM_SUBSCRIPTION_ID -e ARM_TENANT_ID -e ARM_CLIENT_ID -e ARM_OIDC_REQUEST_TOKEN -e ARM_OIDC_REQUEST_URL -e ARM_USE_OIDC=true -e CHANGED_FOLDERS mcr.microsoft.com/azterraform:latest sh -c "pkenv install 1.10.2 && go mod tidy && go test -timeout=360m -v ./e2e" - uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 #v3.1.3 with: