From 5b8b22b9059b1f68dfe259f77085cbefc27c0618 Mon Sep 17 00:00:00 2001 From: Kevin Yu Date: Sat, 9 Nov 2024 10:40:24 -0500 Subject: [PATCH] Bump checkout, set admin env --- .github/workflows/vercel-merge.yml | 13 ++++++++++++- .github/workflows/vercel-pull-request.yml | 13 ++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/vercel-merge.yml b/.github/workflows/vercel-merge.yml index 25a894a..eac0663 100644 --- a/.github/workflows/vercel-merge.yml +++ b/.github/workflows/vercel-merge.yml @@ -7,7 +7,18 @@ jobs: build_and_deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + - uses: dkershner6/vercel-set-env-action@v3 + with: + token: ${{ secrets.VERCEL_TOKEN }} + teamId: ${{ secrets.ORG_ID }} + projectName: internal-ctf + envVariableKeys: ADMIN_TOKEN + env: + ADMIN_TOKEN: ${{ secrets.ADMIN_TOKEN }} + TARGET_ADMIN_TOKEN: preview,development,production + TYPE_ADMIN_TOKEN: encrypted + - uses: amondnet/vercel-action@v20 with: vercel-token: ${{ secrets.VERCEL_TOKEN }} diff --git a/.github/workflows/vercel-pull-request.yml b/.github/workflows/vercel-pull-request.yml index 06bf816..8c135c4 100644 --- a/.github/workflows/vercel-pull-request.yml +++ b/.github/workflows/vercel-pull-request.yml @@ -7,7 +7,18 @@ jobs: build_and_deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + - uses: dkershner6/vercel-set-env-action@v3 + with: + token: ${{ secrets.VERCEL_TOKEN }} + teamId: ${{ secrets.ORG_ID }} + projectName: internal-ctf + envVariableKeys: ADMIN_TOKEN + env: + ADMIN_TOKEN: ${{ secrets.ADMIN_TOKEN }} + TARGET_ADMIN_TOKEN: preview,development,production + TYPE_ADMIN_TOKEN: encrypted + - uses: amondnet/vercel-action@v20 id: vercel-deploy with: