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 ef5be81 commit 5d8a6a6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ jobs:
id: check_changes
run: |
if [ -n "$(ls .changeset/*.md 2>/dev/null)" ]; then
echo "CHANGES_DETECTED"
echo "changes_detected=true" >> $GITHUB_ENV
else
echo "changes_detected=false" >> $GITHUB_ENV
echo "CHANGES NOT DETECTED"
fi
- name: Create Pull Request
Expand All @@ -33,6 +35,7 @@ jobs:
CHANGES_DETECTED: ${{ env.changes_detected }}

run: |
echo "CHANGES_DETECTED=${CHANGES_DETECTED}"
if [ "${CHANGES_DETECTED}" != "true" ]; then
echo "No changesets detected. Skipping version bump and PR creation."
exit 0
Expand Down

0 comments on commit 5d8a6a6

Please sign in to comment.