Skip to content

Commit

Permalink
Update version-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
naher94 authored Feb 13, 2024
1 parent 28d154a commit c8942ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/version-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@ jobs:
- name: Check version increment
run: |
# Print the list of changed files
echo "Changed files in this pull request:"
git diff --name-only $DEFAULT_BRANCH HEAD
# Check if 'config.yml' was modified in this pull request
if git diff --name-only $DEFAULT_BRANCH HEAD | grep -q 'config.yml'; then
# Print the changes in 'config.yml' for debugging
echo "Changes in 'config.yml':"
git diff $DEFAULT_BRANCH HEAD 'config.yml'

# Check if the version was incremented
Expand Down

0 comments on commit c8942ea

Please sign in to comment.