Merge pull request #10 from sbouchexbellomie-Philips/auth #8
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: Update README | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
update-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update README | |
uses: npalm/[email protected] | |
with: | |
readme: ./README.md | |
actionFile: ./action.yml | |
tocLevel: 2 | |
lineBreaks: LF | |
- name: commit and push | |
uses: stefanzweifel/[email protected] | |
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" |