Merge pull request #12 from philips-software/feature/add-github-defau… #10
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: Update README | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| update-readme: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Update README | |
| uses: npalm/action-docs-action@v1.2.0 | |
| with: | |
| readme: ./README.md | |
| actionFile: ./action.yml | |
| tocLevel: 2 | |
| lineBreaks: LF | |
| - name: commit and push | |
| uses: stefanzweifel/git-auto-commit-action@v4.15.0 | |
| with: | |
| commit_message: "Auto-update README.md" | |
| branch: "update-readme" | |
| push_options: '--force' | |
| create_branch: true | |
| - name: Create pull request | |
| uses: devops-infra/action-pull-request@master | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| source_branch: update-readme | |
| target_branch: main | |
| label: automated | |
| title: Update README.md | |
| body: "Automatically updated contents of README.md based on an updated action.yml file" |