From 2d5fabacbe0b3827fb4219359c8545f81042d0bc Mon Sep 17 00:00:00 2001 From: Abhishek Joshi Date: Sat, 30 Nov 2024 14:54:53 -0600 Subject: [PATCH] Updating workflow --- .github/workflows/update-docs.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-docs.yaml b/.github/workflows/update-docs.yaml index fe6cc80f5b..5c8168d2f0 100644 --- a/.github/workflows/update-docs.yaml +++ b/.github/workflows/update-docs.yaml @@ -47,10 +47,15 @@ jobs: # Remove .nojekyll from root directory if it exists - name: Remove .nojekyll file run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" git fetch origin gh-pages git checkout gh-pages if [ -f .nojekyll ]; then - git rm .nojekyll + rm .nojekyll + git add .nojekyll + git commit -m "Remove .nojekyll file" + git push origin gh-pages echo ".nojekyll file removed" else echo ".nojekyll file does not exist, skipping."