Skip to content

Commit

Permalink
fix: use github context
Browse files Browse the repository at this point in the history
  • Loading branch information
dg1223 committed Jul 26, 2023
1 parent 5ad0437 commit 826fcbb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci-cd-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ jobs:
id: check-readme-changes
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 }})
CURRENT_COMMIT=$(git rev-parse HEAD)
echo ${CURRENT_COMMIT}
CHANGED_FILES=$(git diff --name-only HEAD^)
CHANGED_FILES=$(git diff --name-only ${{ github.event.before }}...${{ github.sha }})
echo ${CHANGED_FILES}
# Check if 'README.md' or '.yml' files are the only files changed
Expand Down

0 comments on commit 826fcbb

Please sign in to comment.