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 ebbc145 commit 14b0301
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,22 @@ jobs:
id: check_changes
run: |
if [ -n "$(ls .changeset/*.md 2>/dev/null)" ]; then
echo "changes_detected=true" >> $GITHUB_OUTPUT
echo "changes_detected=true" >> $GITHUB_ENV
else
echo "changes_detected=false" >> $GITHUB_OUTPUT
echo "changes_detected=false" >> $GITHUB_ENV
fi
- name: Create Pull Request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CHANGES_DETECTED: ${{ env.changes_detected }}

run: |
if [ "${{ steps.check_changes.outputs.changes_detected }}" != "true" ]; then
if [ "${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 Down

0 comments on commit 14b0301

Please sign in to comment.