diff --git a/.github/workflows/preview-common.yaml b/.github/workflows/preview-common.yaml index 48df405..315e2cc 100644 --- a/.github/workflows/preview-common.yaml +++ b/.github/workflows/preview-common.yaml @@ -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: diff --git a/.github/workflows/preview.yaml b/.github/workflows/preview.yaml index 1ef255e..c44a597 100644 --- a/.github/workflows/preview.yaml +++ b/.github/workflows/preview.yaml @@ -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 }}