From ffe258d07f906fa09944a31d0e4237542ce3b4ce Mon Sep 17 00:00:00 2001 From: Israel Fimbres Date: Mon, 25 Mar 2024 09:45:40 -0700 Subject: [PATCH 1/2] Validate chart versions --- .github/workflows/release.yml | 49 +++++++++++++++++++++++++++-------- 1 file changed, 38 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ace5858b..06f90103 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,25 +3,52 @@ name: Release Charts on: push: branches: - - master + - SRE-4495/chart-validation jobs: release: runs-on: ubuntu-latest steps: - - name: Checkout + - name: Index checkout uses: actions/checkout@v2 with: - fetch-depth: 0 + ref: gh-pages + path: index + sparse-checkout: | + index.yaml + sparse-checkout-cone-mode: false + + - uses: fabasoad/data-format-converter-action@main + id: yaml2json + with: + input: "index/index.yaml" + from: yaml + to: json + + - name: Print index + run: echo "${{ steps.yaml2json.outputs.output }}" - - name: Configure Git + - name: Print python + shell: python -u {0} run: | - git config user.name "$GITHUB_ACTOR" - git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + print("hello world!") - - name: Run chart-releaser - uses: helm/chart-releaser-action@v1.4.0 + - name: Checkout + uses: actions/checkout@v2 with: - charts_repo_url: https://dave-inc.github.io/charts - env: - CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + fetch-depth: 0 + + - run: | + git diff --name-only master + +# - name: Configure Git +# run: | +# git config user.name "$GITHUB_ACTOR" +# git config user.email "$GITHUB_ACTOR@users.noreply.github.com" +# +# - name: Run chart-releaser +# uses: helm/chart-releaser-action@v1.4.0 +# with: +# charts_repo_url: https://dave-inc.github.io/charts +# env: +# CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" From ef18ebb06e33c9d5aaadb92ca09e03c18676e4cb Mon Sep 17 00:00:00 2001 From: cameron-ruatta-dave <71900263+cameron-ruatta-dave@users.noreply.github.com> Date: Fri, 28 Feb 2025 15:57:54 -0800 Subject: [PATCH 2/2] Retrigger --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 06f90103..5273381b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,4 +51,4 @@ jobs: # with: # charts_repo_url: https://dave-inc.github.io/charts # env: -# CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" +# CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file