diff --git a/.github/workflows/charts-release.yaml b/.github/workflows/charts-release.yaml index 8fb95a30550..bf62f3d740f 100644 --- a/.github/workflows/charts-release.yaml +++ b/.github/workflows/charts-release.yaml @@ -3,7 +3,7 @@ name: "Charts: Release" on: push: branches: - - charts + - master tags-ignore: - '**' paths: @@ -63,6 +63,7 @@ jobs: - name: Run chart-releaser uses: helm/chart-releaser-action@v1.2.0 with: + charts_dir: library charts_repo_url: https://charts.truecharts.org/ env: CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/charts-restructure.yaml b/.github/workflows/charts-restructure.yaml deleted file mode 100644 index 311eeb7e45e..00000000000 --- a/.github/workflows/charts-restructure.yaml +++ /dev/null @@ -1,51 +0,0 @@ -name: "Charts: Restructure" - -on: - push: - branches: - - master - tags-ignore: - - '**' - -jobs: - copy: - runs-on: ubuntu-latest - steps: - - name: Checkout-Master - uses: actions/checkout@v2 - with: - ref: 'master' - path: 'master' - token: ${{ secrets.RENOVPUSH }} - - name: Checkout-Charts - uses: actions/checkout@v2 - with: - ref: 'charts' - path: 'charts' - token: ${{ secrets.RENOVPUSH }} - - - name: Generate Helm Structure - run: | - cd master - rm -Rf ../charts/charts/* - for chart in charts/*; do - if [ -d "${chart}" ]; then - maxversion=$(ls -l ${chart} | grep ^d | awk '{print $9}' | tail -n 1) - chartname=$(basename ${chart}) - echo "Processing ${chart} version ${maxversion}" - mv ${chart}/${maxversion} ../charts/charts/${chartname} - rm ../charts/charts/${chartname}/Chart.lock || echo "chart.lock missing for ${chartname}, continuing..." - fi - done - mv library/* ../charts/charts/ - ls ../charts/charts/ - cd .. - - - name: Commit and push updated charts - run: | - cd charts - git config user.name "$GITHUB_ACTOR" - git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - git add --all - git commit -sm "Publish Chart updates" || exit 0 - git push