Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sumanthreddy29 committed Mar 6, 2024
1 parent 11c215b commit 78dec1d
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/get-changed-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,11 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
with:
json: "true"
base_sha: 'main'
- name: List all changed files
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
set -eux
echo "All changed files: $ALL_CHANGED_FILES"
git diff --name-only -r origin/main HEAD | xargs -I {} echo "Changed file: {}"
file_changes=$(git diff --name-only -r origin/main HEAD | grep -Ev '\.md$|\.github/' | xargs)
for file in $file_changes; do
echo "Changed file: $file"
done

0 comments on commit 78dec1d

Please sign in to comment.