Bump github.com/spf13/cobra from 1.7.0 to 1.8.0 #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Helm | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "deploy/charts/**" | |
pull_request: | |
paths: | |
- "deploy/charts/**" | |
env: | |
HELM_VERSION: "v3.10.2" | |
jobs: | |
lint-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Helm | |
uses: azure/setup-helm@v4 | |
with: | |
version: ${{ env.HELM_VERSION }} | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
- name: Set up chart-testing | |
uses: helm/chart-testing-action@v2.6.1 | |
- name: List changed | |
id: list-changed | |
run: | | |
changed=$(ct list-changed --config=.github/config/ct.yml) | |
if [[ -n "$changed" ]]; then | |
echo "changed=true" >> $GITHUB_OUTPUT | |
fi | |
- name: Lint | |
if: steps.list-changed.outputs.changed == 'true' | |
run: ct lint --config=.github/config/ct.yml | |
- name: Cluster | |
if: steps.list-changed.outputs.changed == 'true' | |
run: make cluster | |
- name: Test install | |
if: steps.list-changed.outputs.changed == 'true' | |
run: ct install --config=.github/config/ct.yml | |
release: | |
runs-on: ubuntu-latest | |
needs: lint-test | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "$GITHUB_ACTOR@users.noreply.github.com" | |
- name: Install Helm | |
uses: azure/setup-helm@v4 | |
- name: Run chart-releaser | |
uses: helm/chart-releaser-action@v1.6.0 | |
env: | |
CR_TOKEN: "${{ secrets.GHA_TOKEN }}" | |
CR_RELEASE_NAME_TEMPLATE: "helm-chart-{{ .Version }}" | |
CR_SKIP_EXISTING: true | |
with: | |
charts_dir: deploy/charts | |
charts_repo_url: https://mariadb-operator.github.io/mariadb-operator |