Skip to content

Commit

Permalink
fix(workflows): Fix workflow errors (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
osama-salman99 authored Nov 27, 2023
1 parent 71b49a4 commit 6872e5c
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/generate-and-test-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,16 @@ jobs:
run: |
rm -rf ./generator/src/test/resources/exemplar-docs/*
cp -r ./generator/target/sdk/docs/* ./generator/src/test/resources/exemplar-docs/
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add ./generator/src/test/resources/exemplar-docs/
git commit -m "chore(docs): update docs" || echo "No changes"
git push
env:
GH_TOKEN: ${{ github.token }}
if git diff --quiet; then
echo "No docs changes."
else
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add ./generator/src/test/resources/exemplar-docs/
git commit -m "chore(docs): update docs"
git push
echo "Docs changes committed and pushed successfully."
fi
- uses: actions/labeler@v4
with:
sync-labels: true

0 comments on commit 6872e5c

Please sign in to comment.