From fd8d5f31baba4f583b1029a93917e91b89bfc917 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Wed, 19 Aug 2020 16:06:44 -0400 Subject: [PATCH] Maybe fixes gh-pages push error --- .github/workflows/ci-suite.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-suite.yml b/.github/workflows/ci-suite.yml index cf62e4b83f..a29e637995 100644 --- a/.github/workflows/ci-suite.yml +++ b/.github/workflows/ci-suite.yml @@ -104,7 +104,7 @@ jobs: echo "Adding files..." git add --all echo "Committing..." - git commit -m "Deploy code docs to GitHub Pages for workflow run ${{ github.run_number }}" -m "Commit: ${{ github.event.head_commit.id }}" + git diff-index --quiet HEAD || git commit -m "Deploy code docs to GitHub Pages for workflow run ${{ github.run_number }}" -m "Commit: ${{ github.event.head_commit.id }}" echo "Pushing..." git push -f "https://${{ secrets.DEV_PUSH_TOKEN }}@github.com/tgstation/tgstation-server" 2>&1