Skip to content

Commit

Permalink
publish: compare to last push instead of last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan committed Oct 23, 2023
1 parent 130d48d commit d8ca74a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ jobs:
- name: Run cm-push
run: |
changed_charts=()
last_push_sha=$(git rev-parse emporium-apps/master)
for dir in charts/*; do
if [ -d "$dir" ] && git diff --quiet HEAD~1 HEAD -- "$dir"; then
if [ -d "$dir" ] && git diff --quiet $last_push_sha HEAD -- "$dir"; then
continue
fi
changed_charts+=("$dir")
Expand All @@ -57,4 +60,4 @@ jobs:
echo "Pushing..."
# Package and push the chart
helm cm-push $chart emporium-apps
done
done

0 comments on commit d8ca74a

Please sign in to comment.