Skip to content

Commit

Permalink
pipeline: add git diff merge base
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorisFeddema committed Aug 5, 2024
1 parent 1d89974 commit 9807438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Create changed charts matrix
id: charts
run: |
charts=$(git diff --name-only | grep ^charts/ | cut -d/ -f2 | uniq | sort | jq -R -s -c 'split("\n")[:-1]')
charts=$(git diff --merge-base main --name-only | grep ^charts/ | cut -d/ -f2 | uniq | sort | jq -R -s -c 'split("\n")[:-1]')
echo "charts=${charts}"
echo "charts=${charts}" >> "$GITHUB_OUTPUT"
Expand Down

0 comments on commit 9807438

Please sign in to comment.