From 9e3ad05975c693ce555a55aef71618cf84d5bf02 Mon Sep 17 00:00:00 2001 From: Romuald Brillout Date: Sun, 24 Jul 2022 14:13:13 +0200 Subject: [PATCH] fix CI's git env vars --- .github/workflows/ci.yml | 2 -- examples/cloudflare-workers-react-full/.testRun.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa5ee73c6fe..63ae3896ded 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,7 +63,5 @@ jobs: - name: Run tests run: ${{ matrix.testCmd }} env: - GIT_REPOSITORY: ${{ github.repository }} - GIT_BRANCH: ${{ github.ref_name }} CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }} CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }} diff --git a/examples/cloudflare-workers-react-full/.testRun.ts b/examples/cloudflare-workers-react-full/.testRun.ts index c0673f48b62..b67335b871e 100644 --- a/examples/cloudflare-workers-react-full/.testRun.ts +++ b/examples/cloudflare-workers-react-full/.testRun.ts @@ -11,7 +11,7 @@ function testRun(cmd: 'npm run dev' | 'npm run preview', { hasStarWarsPage }: { const isWrangler = cmd === 'npm run preview' if (isGithubAction()) { - const repository = process.env['GIT_REPOSITORY'] + const repository = process.env['GITHUB_REPOSITORY'] expect(repository).toBeTruthy() // GitHub Actions doesn't make secrets available to Pull Requests. // - https://github.community/t/feature-request-allow-secrets-in-approved-external-pull-requests/18071/4