From d4f3aae871703adb55f57bddd42eacc46ef54dad Mon Sep 17 00:00:00 2001 From: RanolP Date: Tue, 15 Dec 2020 00:50:07 +0900 Subject: [PATCH] Renamed env var name --- .github/workflows/deployment.yml | 2 +- generator/src/vendors/github.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index ca259f92..bff34e57 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -25,7 +25,7 @@ jobs: working-directory: ./generator run: npm run build:release env: - ARTIFACT_DOWNLOAD_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} + REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} - name: Create Artifacts uses: actions/upload-artifact@v2 diff --git a/generator/src/vendors/github.ts b/generator/src/vendors/github.ts index 15e5eb92..39153f44 100644 --- a/generator/src/vendors/github.ts +++ b/generator/src/vendors/github.ts @@ -131,7 +131,7 @@ export async function getArtifacts(url: string): Promise { } export async function downloadArtifact(artifact: Artifact, target: PathLike): Promise { - const response = await requestRaw(artifact.archiveDownloadUrl, process.env['ARTIFACT_DOWNLOAD_TOKEN']); + const response = await requestRaw(artifact.archiveDownloadUrl, process.env['REPO_ACCESS_TOKEN']); const buffer = await response.buffer(); await mkdirs(dirname(target.toString()));