Skip to content

Commit

Permalink
Fix checking for changed charts.
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-barry committed Dec 6, 2024
1 parent 386a537 commit 7eb7e5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pr-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all branches

- name: Set up Helm
uses: azure/setup-helm@v4

- name: Identify Changed Charts
id: changed_charts
run: |
git fetch origin ${{ github.base_ref }}
CHANGED_CHARTS=$(git diff --name-only origin/${{ github.base_ref }} --diff-filter=ACDMRT | grep '^charts/' | awk -F/ '{print $2}' | uniq | tr '\n' ' ')
echo "CHANGED_CHARTS=$CHANGED_CHARTS" >> $GITHUB_ENV
Expand Down

0 comments on commit 7eb7e5b

Please sign in to comment.