Skip to content

fix: workflow

fix: workflow #20

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push events to main and preview
push:
branches:
- main
- preview
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains jobs called "Build-Main" and "Build-Preview"
Build-Main:
if: ${{ github.ref == 'refs/heads/main' }}
uses: dynamsoft-docs/Docs-Template-Repo/.github/workflows/called-workflow-build-sync-production.yml@main
with:
doc-repo: driver-license-scanner-docs-js
doc-url: driver-license-scanner/docs
secrets: inherit
Build-Preview:
if: ${{ github.ref == 'refs/heads/preview' }}
uses: ./.github/workflows/called-workflow-build-sync-testing.yml@preview

Check failure on line 29 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

invalid value workflow reference: cannot specify version when calling local workflows
with:
doc-repo: driver-license-scanner-docs-js
doc-url: driver-license-scanner/docs/
secrets: inherit