Skip to content

Commit

Permalink
👷 Update CI workflow to include checkout step for preview jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
cermakjiri committed Nov 21, 2024
1 parent 076f245 commit 2855009
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
1 change: 0 additions & 1 deletion .github/workflows/common/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 14 additions & 10 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 2855009

Please sign in to comment.