Generate Docs #106
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |