From 9c8b1bac82b7f30208b61fbcc54f3d2c3aee8214 Mon Sep 17 00:00:00 2001 From: JooYoung Seo Date: Wed, 21 Aug 2024 19:23:45 -0500 Subject: [PATCH] ci: update workflow --- .github/workflows/generate-docs.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/generate-docs.yml b/.github/workflows/generate-docs.yml index 9c9a063..1bff2cf 100644 --- a/.github/workflows/generate-docs.yml +++ b/.github/workflows/generate-docs.yml @@ -28,8 +28,13 @@ jobs: run: redocly build-docs ./api/latest.yaml -o ./docs/index.html - name: Commit and push changes - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: main - force: true + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git add docs/index.html + git commit -m 'docs(api): generate HTML documentation from OpenAPI spec' + git push + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + \ No newline at end of file