From 2855009476e989c31d95f8ce2f85976e033578ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C4=8Cerm=C3=A1k?= Date: Thu, 21 Nov 2024 14:42:08 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Update=20CI=20workflow=20to=20in?= =?UTF-8?q?clude=20checkout=20step=20for=20preview=20jobs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/common/preview.yaml | 1 - .github/workflows/preview.yaml | 24 ++++++++++++++---------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/common/preview.yaml b/.github/workflows/common/preview.yaml index 315e2cc..b547210 100644 --- a/.github/workflows/common/preview.yaml +++ b/.github/workflows/common/preview.yaml @@ -18,7 +18,6 @@ jobs: shared-steps: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 20 diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 2ac5bbb..2db6c68 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -6,15 +6,19 @@ on: - dev jobs: Default example: - uses: .github/workflows/common/preview.yaml - with: - vercel_project_name: ${{ secrets.VERCEL_NAME_EXAMPLE_DEFAULT }} - vercel_scope: ${{ secrets.VERCEL_SCOPE }} - vercel_token: ${{ secrets.VERCEL_TOKEN }} + steps: + - uses: actions/checkout@v4 + - uses: .github/workflows/common/preview.yaml + with: + vercel_project_name: ${{ secrets.VERCEL_NAME_EXAMPLE_DEFAULT }} + vercel_scope: ${{ secrets.VERCEL_SCOPE }} + vercel_token: ${{ secrets.VERCEL_TOKEN }} Upgrade example: - uses: .github/workflows/common/preview.yaml - with: - vercel_project_name: ${{ secrets.VERCEL_NAME_EXAMPLE_UPGRADE }} - vercel_scope: ${{ secrets.VERCEL_SCOPE }} - vercel_token: ${{ secrets.VERCEL_TOKEN }} + steps: + - uses: actions/checkout@v4 + - uses: .github/workflows/common/preview.yaml + with: + vercel_project_name: ${{ secrets.VERCEL_NAME_EXAMPLE_UPGRADE }} + vercel_scope: ${{ secrets.VERCEL_SCOPE }} + vercel_token: ${{ secrets.VERCEL_TOKEN }}