From 29f30e05efc25548af5b293a2ca5464e56dff83a Mon Sep 17 00:00:00 2001 From: pdmurray Date: Wed, 25 Sep 2024 22:25:21 -0700 Subject: [PATCH] [BUG] Manually commit changes to API docs in CI --- .github/workflows/generate_api_docs.yaml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/generate_api_docs.yaml b/.github/workflows/generate_api_docs.yaml index c0d10c300..ede5da201 100644 --- a/.github/workflows/generate_api_docs.yaml +++ b/.github/workflows/generate_api_docs.yaml @@ -26,8 +26,6 @@ jobs: - name: "Checkout repository 🛎️" uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.ref }} - name: "Set up Miniconda 🐍" uses: conda-incubator/setup-miniconda@v3 @@ -44,9 +42,9 @@ jobs: mv docusaurus-docs/static/openapi.json.formatted docusaurus-docs/static/openapi.json - name: "Commit changes" - uses: EndBug/add-and-commit@v9 - with: - default_author: github_actions - message: 'Update REST API documentation (openapi.json)' - add: 'docusaurus-docs/static/openapi.json' - push: true + run: + git config user.name github-actions + git config user.email github-actions@github.com + git add docusaurus-docs/static/openapi.json + git commit -m 'Update REST API documentation (openapi.json)' + git push