diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7318f28d..de940768 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,13 +35,18 @@ jobs: cd docsource && make html make github cd .. + - name: Configure Git + run: | + git config --global user.name 'GitHub Actions' + git config --global user.email 'actions@github.com' + - name: Commit and Push Changes - uses: stefanzweifel/git-auto-commit-action@v4 - with: - branch: main - commit_message: auto-generated docs - commit_options: '--no-verify' - push_options: --force + run: | + cd docs/ + git init + git add -A + git commit -m "Update documentation" + git push --force --quiet "https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}" - name: Setup test environment and run tests env: OPENWEATHERMAP_API_KEY: ${{ secrets.OPENWEATHERMAP_API_KEY }}