Skip to content

Commit

Permalink
chore: clean end
Browse files Browse the repository at this point in the history
  • Loading branch information
ialejandro committed Sep 5, 2024
1 parent e6e049b commit fd4d43f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ jobs:
- name: Set up chart-testing
uses: helm/[email protected]

- name: Current branch name
id: current_branch
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> "$GITHUB_OUTPUT"

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --config .github/ct.yaml)
changed=$(ct list-changed --config .github/ct.yaml --target-branch ${{ steps.current_branch.outputs.branch }})
if [[ -n "${changed}" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Current branch name
id: current_branch
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> "$GITHUB_OUTPUT"

- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --config .github/ct.yaml --target-branch ${{ steps.current_branch.outputs.branch }}
Expand Down

0 comments on commit fd4d43f

Please sign in to comment.