Skip to content

Update main.yml

Update main.yml #621

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 or pull request events for main and preview branch
push:
branches:
- main
#- preview
- v2
# 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: camera-enhancer-docs
doc-url: camera-enhancer/docs/core
secrets: inherit
Build-Preview:
if: ${{ github.ref == 'refs/heads/preview' }}
uses: dynamsoft-docs/Docs-Template-Repo/.github/workflows/called-workflow-build-sync-testing.yml@preview
with:
doc-repo: camera-enhancer-docs
doc-url: camera-enhancer/docs/core
secrets: inherit
Build-v2:
if: ${{ github.ref == 'refs/heads/v2' }}
uses: dynamsoft-docs/Docs-Template-Repo/.github/workflows/called-workflow-build-sync-testing.yml@DCV-v2
with:
doc-repo: camera-enhancer-docs
doc-url: camera-enhancer/docs/v2/core
doc-branch: v2

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

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 42, Col: 19): Invalid input, doc-branch is not defined in the referenced workflow.
secrets: inherit