Merge pull request #484 from Automattic/dependabot/github_actions/act… #134
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: | |
| - trunk | |
| paths: | |
| - 'features/src/**/devcontainer-feature.json' | |
| - 'features/src/**/NOTES.md' | |
| - '.github/workflows/generate-docs.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| generate-feature-docs: | |
| name: Generate documentation for features | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/[email protected] | |
| - name: Generate documentation | |
| uses: devcontainers/action@1082abd5d2bf3a11abccba70eef98df068277772 # v1.4.3 | |
| with: | |
| generate-docs: true | |
| base-path-to-features: ./features/src | |
| - name: Create a PR for documentation | |
| uses: peter-evans/create-pull-request@98357b18bf14b5342f975ff684046ec3b2a07725 # v8.0.0 | |
| with: | |
| add-paths: ':(glob)features/src/**/README.md' | |
| commit-message: 'docs: automated documentation update' | |
| title: 'docs: automated documentation update' | |
| body: 'Update documentation for features' | |
| labels: docs | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |