chore(deps): bump actions/checkout from 4 to 6 #472
Workflow file for this run
This file contains hidden or 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: '📝 Generate Docs' | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/workflows/generate-docs.yml' | |
| - 'action.yml' | |
| - 'README.md' | |
| pull_request: | |
| jobs: | |
| docs: | |
| name: Generate Docs | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout 🛬 | |
| uses: actions/checkout@v6 | |
| with: | |
| token: ${{ secrets.PAT_GITHUB_TOKEN }} | |
| - name: Setup Node ⚙️ | |
| uses: ./.github/actions/setup-node | |
| if: github.actor != 'dependabot[bot]' | |
| - name: Run doc generation 📚 | |
| uses: npalm/action-docs-action@v3 | |
| if: github.actor != 'dependabot[bot]' | |
| with: | |
| includeNameHeader: false | |
| - name: Check for changes 🔍 | |
| if: github.actor != 'dependabot[bot]' | |
| id: changes | |
| run: git diff --exit-code || echo "has_changes=true" >> "$GITHUB_ENV" | |
| - name: Commit doc changes 📝 | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| if: env.has_changes == 'true' && github.actor != 'dependabot[bot]' | |
| with: | |
| commit_message: "docs: update automatically readme documentation based on action.yml" | |
| file_pattern: README.md |