Skip to content

v1.17.7

v1.17.7 #13

Workflow file for this run

name: Publish Helm Charts
on:
release:
types: [published]
workflow_dispatch:
jobs:
release:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Helm
uses: azure/setup-helm@v4
- name: Install Helm HTML Plugin
run: helm plugin install https://github.com/halkeye/helm-repo-html
- name: Build Helm Chart Repo index.yaml
run: |
# this script from main will be gone on gh-pages branch,
# so lets stash it away in a temp directory in the directory above this one
mkdir ../.tmp
mv hack/find_helm_chart_releases_and_create_helm_index.sh ../.tmp/
mv hack/gh-pages.tmpl ../.tmp/
if git show-ref --verify --quiet refs/heads/gh-pages || git ls-remote --exit-code --heads origin gh-pages; then
# Branch exists
git checkout gh-pages
echo "Checked out existing branch 'gh-pages'"
else
# Branch does not exist
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo ".tmp/" > .gitignore
echo "Created and checked out new branch 'gh-pages'"
fi
mv ../.tmp ./
.tmp/find_helm_chart_releases_and_create_helm_index.sh
helm repo-html -t .tmp/gh-pages.tmpl
if output=$(git status --porcelain) && [ -z "$output" ]; then
# Working directory clean
echo "No changes to commit"
else
# Uncommitted changes
echo "Changes detected"
git status
echo "Committing..."
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add -A
git commit -m "update helm chart repository index"
fi
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
branch: feat/update-helm-repo-index-${{ github.sha }}
base: gh-pages
title: Update Helm Chart Repository Index
body: |
<!--
Are you using Knative? If you do, we would love to know!
https://github.com/knative/community/issues/new?template=ADOPTERS.yaml&title=%5BADOPTERS%5D%3A+%24%7BCOMPANY+NAME+HERE%7D
-->
<!--
Request Prow to automatically lint any go code in this PR:
/lint
-->
## Proposed Changes
* Update Helm Chart Repository Index - generated by the publish-helm.yaml workflow
**Release Note**
<!-- Enter your extended release note in the below block. If the PR requires
additional action from users switching to the new release, include the string
"action required". If no release note is required, write "NONE". -->
```release-note
NONE
```