From 43b5a691583dfe5e77a0cddbfd94daa53489a5fc Mon Sep 17 00:00:00 2001 From: Lucian <42606+exaluc@users.noreply.github.com> Date: Tue, 29 Oct 2024 22:12:11 +0100 Subject: [PATCH] github workflow tests --- .github/workflows/generate-docs.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/generate-docs.yml b/.github/workflows/generate-docs.yml index a75bc14..29c8e5f 100644 --- a/.github/workflows/generate-docs.yml +++ b/.github/workflows/generate-docs.yml @@ -29,7 +29,7 @@ jobs: # Step 4: Run Docsible to generate documentation - name: Generate documentation for ThermoCore role run: | - docsible -c ./ -g -o README.md -a -com # Adjust path or flags as needed + docsible -r ./ -g -o README.md -a -com # Step 5: Check for changes - name: Check for documentation changes @@ -37,9 +37,9 @@ jobs: git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" git add README.md - if git diff-index --cached --quiet HEAD --; then - echo "No changes to commit." - exit 0 + if git diff --exit-code; then + echo "No changes to commit"; + exit 0; fi # Step 6: Commit and push changes