Skip to content

Commit

Permalink
fix: use git log instead of git diff to see changed file names
Browse files Browse the repository at this point in the history
  • Loading branch information
dg1223 committed Jul 26, 2023
1 parent aaa110f commit 996eafa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci-cd-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ jobs:
run: |
# Get the list of changed files between the base and head branches
# CHANGED_FILES=$(git diff --name-only ${{ github.base_ref }}...${{ github.head_ref }})
git diff --name-only
CHANGED_FILES=$(git diff --name-only)
CHANGED_FILES=$(git log -1 --name-only --pretty=format:'')
echo ${CHANGED_FILES}
# Check if 'README.md' or '.yml' files are the only files changed
Expand Down

0 comments on commit 996eafa

Please sign in to comment.