Rollback on helmdoc generation (#8154)

This commit is contained in:
Ricardo Katz 2022-01-17 10:09:30 -03:00 committed by GitHub
parent c667cf083b
commit cce04fca48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,28 +57,6 @@ jobs:
git config --global user.name "$GITHUB_ACTOR" git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com" 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 - name: Run chart-releaser
uses: helm/chart-releaser-action@v1.2.1 uses: helm/chart-releaser-action@v1.2.1
env: env: