Skip to content

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

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

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

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@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 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@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # 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 }}"