Rollback on helmdoc generation (#8154)
This commit is contained in:
parent
c667cf083b
commit
cce04fca48
1 changed files with 0 additions and 22 deletions
22
.github/workflows/helm.yaml
vendored
22
.github/workflows/helm.yaml
vendored
|
@ -57,28 +57,6 @@ jobs:
|
|||
git config --global user.name "$GITHUB_ACTOR"
|
||||
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
||||
|
||||
- name: Set up Go 1.17
|
||||
id: go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.17
|
||||
|
||||
- name: Run helm-docs
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
run: |
|
||||
cd ${GITHUB_WORKSPACE}
|
||||
GOBIN=$PWD GO111MODULE=on go install github.com/norwoodj/helm-docs/cmd/helm-docs@v1.6.0
|
||||
./helm-docs --chart-search-root=${GITHUB_WORKSPACE}/charts
|
||||
DIFF=$(git diff ${GITHUB_WORKSPACE}/charts/ingress-nginx/README.md)
|
||||
if [ ! -z "$DIFF" ]; then
|
||||
git add ${GITHUB_WORKSPACE}/charts/ingress-nginx/README.md
|
||||
git commit -m "Update helm README"
|
||||
git push --force https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git main
|
||||
fi
|
||||
rm ./helm-docs
|
||||
|
||||
|
||||
- name: Run chart-releaser
|
||||
uses: helm/chart-releaser-action@v1.2.1
|
||||
env:
|
||||
|
|
Loading…
Reference in a new issue