diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 8716d34..7c0b602 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -30,16 +30,18 @@ jobs: env: CI_COMMIT_MESSAGE: Continuous Integration documentation update CI_COMMIT_AUTHOR: Continuous Integration - run: + run: | git config --global --add safe.directory /__w/inverter/inverter git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" git config --global user.email "${GITHUB_ACTOR}@noreply.github.com" - git add docs && git commit -m "${{ env.CI_COMMIT_MESSAGE }}" && git push || echo "Nothing to update" - -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages + git add docs \ + && git commit -m "${{ env.CI_COMMIT_MESSAGE }}" \ + && git push \ + || echo "Nothing to update" pages_deploy: needs: doc_build_job + # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: contents: read pages: write