Skip to content

Commit

Permalink
handled workflow using matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
kirtimanmishrazipstack committed Jul 18, 2024
1 parent 028fd43 commit 13a5bdd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ jobs:
echo "checking changes for $file_path"
echo "changed=false" >> $GITHUB_ENV
if git diff --name-only HEAD^ $file_path | grep -q $file_path; then
echo "changes in $file_path"
if git diff --quiet main -- $file_path; then
echo "No changes detected in $file_path against main branch."
else
echo "Changes detected in $file_path against main branch."
echo "changed=true" >> $GITHUB_ENV
fi
Expand Down

0 comments on commit 13a5bdd

Please sign in to comment.