From c7e596046d02254d3f47801cf5d40b84005b295f Mon Sep 17 00:00:00 2001 From: Olena Stepaniuk Date: Tue, 24 Sep 2024 12:56:03 +0300 Subject: [PATCH] feat: update upload-docs-ios.yml --- .github/workflows/upload-docs-ios.yml | 30 +++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/upload-docs-ios.yml b/.github/workflows/upload-docs-ios.yml index f030df3fa..a3209c72f 100644 --- a/.github/workflows/upload-docs-ios.yml +++ b/.github/workflows/upload-docs-ios.yml @@ -29,21 +29,21 @@ jobs: clean: false - name: Commit documentation changes run: | - if [ "$(git status --porcelain | wc -l)" -gt 0 ]; then - git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" - git status - TAG_NAME=${{ github.ref }} - TAG_NAME=${TAG_NAME#refs/tags/} - echo "Current tag: $TAG_NAME" - rm -rf docs - cp -r docs_new docs - rm -rf docs_new - git add docs - git commit -m "Generate docs - $TAG_NAME" - else - echo "No changes to commit." - fi + if [ "$(git status --porcelain | wc -l)" -gt 0 ]; then + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + git status + TAG_NAME=${{ github.ref }} + TAG_NAME=${TAG_NAME#refs/tags/} + echo "Current tag: $TAG_NAME" + rm -rf docs + cp -r docs_new docs + rm -rf docs_new + git add docs + git commit -m "Generate docs - $TAG_NAME" + else + echo "No changes to commit." + fi - name: Push changes uses: ad-m/github-push-action@master with: