Skip to content

Commit

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

on:
workflow_call:
secrets:
inputs:
vercel_project_name:
required: true
type: string
vercel_scope:
required: true
type: string
vercel_token:
required: true
type: string

jobs:
shared-steps:
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@ on:
branches:
- dev
jobs:
# 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 }}
default-example:
uses: ./.github/workflows/preview-common.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/preview-common.yaml
secrets:
with:
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_project_name: ${{ secrets.VERCEL_NAME_EXAMPLE_UPGRADE }}
vercel_scope: ${{ secrets.VERCEL_SCOPE }}

0 comments on commit cabe1b1

Please sign in to comment.