Skip to content

fix: added missing import #584

fix: added missing import

fix: added missing import #584

Workflow file for this run

name: Preview Deployment
permissions:
actions: write
contents: read
checks: read
pull-requests: write
deployments: write
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize]
jobs:
pre_job:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
# All of these options are optional, so you can remove them if you are happy with the defaults
concurrent_skipping: 'outdated_runs'
# paths_ignore: '["**/README.md", "**/ag-guideline.md", "**/docs/**", ".github/**"]'
cancel_others: 'true'
changed-packages:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
name: Determine which apps changed
uses: ./.github/workflows/changed-packages.yaml
deploy-preview:
runs-on: ubuntu-latest
needs: [pre_job, changed-packages]
if: needs.pre_job.outputs.should_skip != 'true'
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 2
ref: ${{ needs.check-app.outputs.branch }}
- name: Prepare Environment
uses: ./.github/actions/setup-env
timeout-minutes: 10
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy docs
if: contains(toJson(fromJson(needs.changed-packages.outputs.package_changed).packages), 'docs') && always()
env:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_DOCS_PROJECT_ID }}
uses: ./.github/actions/preview
timeout-minutes: 10
with:
vercel-token: ${{ secrets.VERCEL_ACCESS_TOKEN }} # Required
github-token: ${{ secrets.GITHUB_TOKEN }} #Optional
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}} #Required
vercel-project-id: ${{ secrets.VERCEL_DOCS_PROJECT_ID }} #Required
vercel-project-name: 'docs'