Skip to content

Update check-publish.yaml #376

Update check-publish.yaml

Update check-publish.yaml #376

name: Check and publish
on:
push:
branches:
- 'develop'
- 'master'
- 'main'
tags:
- '**'
pull_request:
branches:
- 'master'
- 'main'
workflow_dispatch: ~
jobs:
docs:
name: Build Readthedocs
runs-on: ubuntu-latest
steps:
- name: Start polytope-docs build
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GH_REPO_READ_TOKEN }}
script: |-
await github.actions.createWorkflowDispatch({
owner: 'ecmwf-projects',
repo: 'polytope-docs',
workflow_id: 'docs.yaml',
ref: 'master'
});
publish:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
name: Publish on Readthedocs
needs: [quality, docs]

Check failure on line 39 in .github/workflows/check-publish.yaml

View workflow run for this annotation

GitHub Actions / Check and publish

Invalid workflow file

The workflow is not valid. .github/workflows/check-publish.yaml (Line: 39, Col: 13): Job 'publish' depends on unknown job 'quality'.
runs-on: ubuntu-latest
steps:
- name: Start polytope-docs build
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GH_REPO_READ_TOKEN }}
script: |-
await github.actions.createWorkflowDispatch({
owner: 'ecmwf-projects',
repo: 'polytope-docs',
workflow_id: 'publish.yaml',
ref: 'master'
});