Skip to content

Add input override-image-tag (#194) #456

Add input override-image-tag (#194)

Add input override-image-tag (#194) #456

Workflow file for this run

name: Generate action documentation
on:
push:
branches: [trunk]
paths:
- '.github/workflows/generate-docs.yml'
- '**/action.yml'
- 'README.md'
workflow_dispatch:
concurrency:
group: '${{ github.workflow }}-${{ github.event_name }}'
cancel-in-progress: true
jobs:
generate-docs:
name: Generate action documentation
runs-on: elvia-runner
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Generate docs
uses: 3lvia/gh-actions-docs@v1
with:
ignore-files: 'my-new-action/action.yml'
ignore-headers: '# core-github-actions-templates,## Table of Contents'
run-prettier: 'true'
- name: Commit changes
shell: bash
run: |
if [[ -z "$(git status --porcelain)" ]]; then
echo 'No changes to commit.'
exit 0
fi
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add README.md
git commit -m 'Update action documentation'
git push
env:
GH_TOKEN: ${{ github.token }}