Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions .github/workflows/docs-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,10 @@ on:
- 'mkdocs.yml'
- 'requirements.txt'
- '.github/workflows/docs-deploy.yaml'
pull_request:
branches:
- main
paths:
- 'docs/**'
- 'mkdocs.yml'
- 'requirements.txt'
- '.github/workflows/docs-deploy.yaml'
workflow_dispatch:

permissions:
contents: read
contents: write

jobs:
build:
Expand Down Expand Up @@ -69,6 +61,20 @@ jobs:
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}

- name: Commit URL changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"

# Check if there are any changes to commit
if ! git diff --quiet; then
git add mkdocs.yml README.md docs/
git commit -m "chore(docs): auto-update repository URLs [skip ci]"
git push
else
echo "No URL changes to commit"
fi

- name: Build documentation
run: |
mkdocs build --strict
Expand Down
Loading