Skip to content

try with verified commits #21

try with verified commits

try with verified commits #21

Workflow file for this run

---
name: documentation
on:
push:
branches:
- devel
workflow_dispatch:
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
env:
FILES_TO_COMMIT: ""
GIT_BRANCH: ""
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# - name: Configure Git
# run: |
# git config user.name "$GITHUB_ACTOR"
# git config user.email "[email protected]"
- uses: addnab/docker-run-action@v3
with:
options: -v ${{ github.workspace }}/charts:/helm-docs
image: jnorwood/helm-docs:v1.14.2
run: /usr/bin/helm-docs --skip-version-footer
- run: |
git add .
if ! git diff --cached --quiet; then
echo "FILES_TO_COMMIT=$(git ls-files --deleted --modified --added --others
)" >> "$GITHUB_ENV"

Check failure on line 37 in .github/workflows/helm-doc.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/helm-doc.yaml

Invalid workflow file

You have an error in your yaml syntax on line 37
echo "GIT_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> "$GITHUB_ENV"
# git commit -m "Automated chart README.md update"
# git push
# else
# echo "No changes to commit."
fi
- name: Commit file
uses: chromeq/[email protected]
if: ${{ env.FILES_TO_COMMIT != "" }}
with:
files: ${{ env.FILES_TO_COMMIT }}
commit-message: Automated chart README.md update
ref: ${{ env.GIT_BRANCH }}
# # Commit all changed files back to the repository
# - uses: stefanzweifel/git-auto-commit-action@v5
# with:
# commit_message: Update Chart readme