Skip to content

Add previous workflow cancel #11

Add previous workflow cancel

Add previous workflow cancel #11

Workflow file for this run

name: Docs
on:
push:
branches:
- main
jobs:
Docs:

Check failure on line 9 in .github/workflows/docs.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docs.yml

Invalid workflow file

You have an error in your yaml syntax on line 9
runs-on: ubuntu-latest
permissions:
contents: write
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.6.0
with:
access_token: ${{ secret.DOCS_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Add Submodules
run: git submodule update --init --recursive
- name: Install Dependencies
run: |
sudo apt install doxygen
# sudo apt-get install python-pip
# pip3 install Jinja2
- name: Build Docs
working-directory: .
run: |
cd scripts
./doxygen.sh
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.DOCS_TOKEN }}
publish_dir: './docs/html'