Skip to content

Commit

Permalink
fix for CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jagoda11 committed Dec 23, 2024
1 parent 068ef0a commit 720cacc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/πŸš€ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ jobs:
run: npm run build
- name: πŸ§ͺ Test with coverage
run: npm run test
- name: πŸ“€ Commit and push generated test files
- name: πŸ“€ Commit and push all changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
if ls src/**/*.test.tsx 1> /dev/null 2>&1; then
git add -A src/**/*.test.tsx # Include untracked files
git commit -m 'πŸ€– Generated unit tests'
git push || echo "No changes to push."
if ! git diff --quiet; then
git add -A
git commit -m 'πŸ€– Auto-commit changes from CI'
git push
else
echo "No test files to commit. Skipping this step."
echo "No changes detected. Skipping commit."
fi
shell: /usr/bin/bash -e {0}

Expand Down

0 comments on commit 720cacc

Please sign in to comment.