Skip to content

Release SDF Doc

Release SDF Doc #7

Workflow file for this run

name: Release SDF Doc
on:
workflow_dispatch:
jobs:
create-sdf-version:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set SDF_VERSION
run: |
SDF_VERSION=$(cat ./sdf/SDF_VERSION)
echo SDF_VERSION $SDF_VERSION
echo "SDF_VERSION=${SDF_VERSION}" >> $GITHUB_ENV
- name: install dependencies
run: npm install
- name: create sdf version
run: npm run docusaurus docs:version:sdf $SDF_VERSION
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
add-paths: |
sdf_versioned_docs
sdf_versioned_sidebars
docusaurus.config.ts
sdf_versions.json
labels: |
bot
title: 'docs: release sdf version ${{ env.SDF_VERSION }} [bot]'
body: |
Updating ${{ env.SDF_VERSION }}
Auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action
delete-branch: true