Skip to content

Generate Docs

Generate Docs #106

Workflow file for this run

name: Generate Docs
on:
workflow_dispatch:
inputs:
latestVersion:
description: 'Whats the latest version of the SDK?'
required: true
jobs:
Generate:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: n1hility/cancel-previous-runs@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Select latest Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Generate Docs
run: |
Scripts/generate_docc_documentation.sh
env:
LATEST_VERSION: ${{ github.event.inputs.latestVersion }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
delete-branch: true
branch: update-docs-github-action
commit-message: "chore: updated documentation"
title: update documentation
body: Regenerate documentation.
token: ${{ secrets.GITHUB_TOKEN }}