Skip to content

Commit

Permalink
👷 Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cermakjiri committed Nov 21, 2024
1 parent 2ad727c commit a7b82dc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/common/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Reusable Preview Workflow

on:
workflow_call:
inputs:
secrets:
vercel_project_name:
required: true
type: string
Expand All @@ -18,6 +18,7 @@ jobs:
shared-steps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
Expand Down
31 changes: 14 additions & 17 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,19 @@ on:
branches:
- dev
jobs:
default-example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./common/preview.yaml
with:
vercel_project_name: ${{ secrets.VERCEL_NAME_EXAMPLE_DEFAULT }}
vercel_scope: ${{ secrets.VERCEL_SCOPE }}
vercel_token: ${{ secrets.VERCEL_TOKEN }}
# default-example:
# runs-on: ubuntu-latest
# 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:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./common/preview.yaml
with:
vercel_project_name: ${{ secrets.VERCEL_NAME_EXAMPLE_UPGRADE }}
vercel_scope: ${{ secrets.VERCEL_SCOPE }}
vercel_token: ${{ secrets.VERCEL_TOKEN }}
uses: .github/workflows/common/preview.yaml
secrets:
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_project_name: ${{ secrets.VERCEL_NAME_EXAMPLE_UPGRADE }}
vercel_scope: ${{ secrets.VERCEL_SCOPE }}

0 comments on commit a7b82dc

Please sign in to comment.