From 5c26e6d7c46b33bc4c6c3d5bc3c953868f8ad0cb Mon Sep 17 00:00:00 2001 From: Simon Clark <52653938+jsimonclark@users.noreply.github.com> Date: Mon, 6 May 2024 05:06:17 +0200 Subject: [PATCH] Update doc.yml --- .github/workflows/doc.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index d83bf93..d8ca830 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -63,6 +63,17 @@ jobs: - name: Copy context file to HTML directory run: sudo cp context/context.json sphinx/_build/html/context/ + - name: Commit changes + run: | + git config --local user.email "${{ env.GIT_USER_EMAIL }}" + git config --local user.name "${{ env.GIT_USER_NAME }}" + git add context/context.json + # Check for any changes to commit + git diff --staged --quiet || git commit -m "Update context.json file" + + - name: Push changes + run: git push origin HEAD:master + - name: Fetch all tags and create version directories run: | git fetch --tags