new version test #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 "$GITHUB_ACTOR@users.noreply.github.com" | |
- 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 diff --name-only --cached)" >> "$GITHUB_ENV" | |
# git commit -m "Automated chart README.md update" | |
# git push | |
# else | |
# echo "No changes to commit." | |
fi | |
- name: Commit file | |
uses: chromeq/commit@v2.x | |
if: ${{ env.FILES_TO_COMMIT != '' }} | |
with: | |
files: ${{ env.FILES_TO_COMMIT }} | |
commit-message: Automated chart README.md update | |
ref: ${{ github.ref }} | |
# # Commit all changed files back to the repository | |
# - uses: stefanzweifel/git-auto-commit-action@v5 | |
# with: | |
# commit_message: Update Chart readme |