Skip to content

Commit

Permalink
Replace chart-testing with git diff
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Polchenko <2119240+i5okie@users.noreply.github.com>
  • Loading branch information
i5okie committed Aug 1, 2024
1 parent 6c5191c commit 107c873
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 107c873

Please sign in to comment.