Skip to content

Commit

Permalink
feat: update upload-docs-ios.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
OlenaPostindustria committed Sep 24, 2024
1 parent 3cd5298 commit c7e5960
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/upload-docs-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c7e5960

Please sign in to comment.