Skip to content

Commit

Permalink
Merge pull request #1297 from bcgov/fix/chart-change-detection
Browse files Browse the repository at this point in the history
Workflow does not detect changes to the helm chart files
  • Loading branch information
i5okie authored Aug 2, 2024
2 parents 6c5191c + 107c873 commit af400a5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/on_push_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,13 @@ jobs:
with:
fetch-depth: 0

- name: Set up chart-testing
uses: helm/chart-testing-action@v2.6.1

- name: Run chart-testing (list-changed)
- name: Check for chart changes
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -q "^charts/"; then
echo "changed=true" >> "$GITHUB_OUTPUT"
else
echo "changed=false" >> "$GITHUB_OUTPUT"
fi
update_configs_repo:
Expand Down

0 comments on commit af400a5

Please sign in to comment.