Skip to content

Commit

Permalink
Update build-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kurdin authored Jul 20, 2024
1 parent b85fa9d commit b01ad31
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ jobs:
fi
- name: Create Pull Request
if: steps.check_changes.outputs.changes_detected == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if [ "${{ steps.check_changes.outputs.changes_detected }}" != "true" ]; then
echo "No changesets detected. Skipping version bump and PR creation."
exit 0
fi
git config user.name github-actions
git config user.email [email protected]
Expand All @@ -41,6 +45,12 @@ jobs:
# Run version bump
npm run version
# Check if there are changes to commit
if [ -z "$(git status --porcelain)" ]; then
echo "No changes to commit after version bump. Exiting."
exit 0
fi
# Commit changes
git add .
git commit -m "Version bump, changelog update"
Expand Down

0 comments on commit b01ad31

Please sign in to comment.