Skip to content

Commit

Permalink
Update actions/checkout to v4, added check for release action
Browse files Browse the repository at this point in the history
  • Loading branch information
vertisan committed May 31, 2024
1 parent e290d76 commit f524f73
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,19 @@ jobs:
with:
version: v3.14.4

- name: Set up chart-testing
uses: helm/[email protected]

- name: Check changed charts
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Run chart-releaser
uses: helm/[email protected]
if: steps.list-changed.outputs.changed == 'true'
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit f524f73

Please sign in to comment.