Skip to content

notebook/v28.9.0

notebook/v28.9.0 #67

Workflow file for this run

name: Write References in docs/SUMMARY.md
on:
push:
branches:
- main
paths:
- 'docs/reference/common/**'
- 'docs/reference/dsl/**'
jobs:
run-python-script:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Run Python Script
run: python docs/scripts/set-reference.py
- name: Commit and push if there are changes
env:
GIT_AUTHOR_NAME: ${{ secrets.SLRELEASE_NAME }}
GIT_AUTHOR_EMAIL: ${{ secrets.SLRELEASE_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.SLRELEASE_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.SLRELEASE_EMAIL }}
GITHUB_TOKEN: ${{ secrets.SLRELEASE_DOCS_WRITE_TOKEN }}
run: |
git add .
git commit -m "docs: update summary.md" || exit 0 # Exit 0 if no changes
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.SLRELEASE_DOCS_WRITE_TOKEN }}