Skip to content

commit from snyk

commit from snyk #1

Workflow file for this run

name: main
on:
push:
branches:
- main
- release/*
- snapshot/*
tags:
- v*
pull_request:
merge_group:
release:
types:
- published
jobs:
# First job: Run snyk workflow only for snyk-* branches
snyk:
name: 'snyk workflow'
if: ${{ startsWith(github.head_ref, 'snyk-') || startsWith(github.ref_name, 'snyk-') }}
uses: ./.github/workflows/snyk.yml

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

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

error parsing called workflow ".github/workflows/main.yml" -> "./.github/workflows/snyk.yml" : workflow is not reusable as it is missing a `on.workflow_call` trigger
secrets: inherit
# Second job: Run docs workflow
docs:
name: 'docs workflow'
needs: [snyk]
if: ${{ always() && (needs.snyk.result == 'success' || needs.snyk.result == 'skipped') }}
uses: ./.github/workflows/doc.yml
secrets: inherit
# Third job: Run ci workflow
ci:
name: 'ci workflow'
needs: [snyk]
if: ${{ always() && (needs.snyk.result == 'success' || needs.snyk.result == 'skipped') }}
uses: ./.github/workflows/ci.yml
secrets: inherit