Skip to content

Merge pull request #28 from philips-software/dependabot/github_action… #24

Merge pull request #28 from philips-software/dependabot/github_action…

Merge pull request #28 from philips-software/dependabot/github_action… #24

Workflow file for this run

name: Update README
on:
push:
branches: [ main ]
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v3
with:
fetch-depth: 3
token: ${{ secrets.GITHUB_TOKEN }}
- name: Update README
uses: npalm/action-docs-action@b1dd20339140224c1ffef389467e4fece8dc416b
with:
readme: README.md
sourceFile: action.yml
tocLevel: 2
lineBreaks: LF
# Create pull request if applicable (for now works only on PR from same repository, not from forks)
- name: Create Pull Request with applied fixes
id: cpr
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # ratchet:peter-evans/create-pull-request@v4
with:
commit-message: "Auto-update README.md"
title: "Update Readme.md"
labels: bot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create PR output
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"