-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1.14 KB
/
update-readme.yml
File metadata and controls
39 lines (32 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Update README
on:
push:
branches: [ main ]
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Update README
uses: npalm/action-docs-action@b1dd20339140224c1ffef389467e4fece8dc416b # v3.1.2
with:
readme: ./README.md
actionFile: ./action.yml
tocLevel: 2
lineBreaks: LF
- name: commit and push
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1
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@a650fadebe990f25fa1e09369bf95d4a9b45ea2b # v0.6.1
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"