Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored May 8, 2021
1 parent 2eba50e commit 472c93a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,36 @@ Want a cool `Table of Contents` for your markdown and also auto sync changes eac
| files | `string` OR `string[]` | `false` | `README.md` | List of input markdown files |
| args | `string` | `false` | `'--use toc --output'` | [remark cli](https://github.com/unifiedjs/unified-args#cli) options. |


## Example

Generate a PR each time your `README.md` changes

```yaml
...
- name: Run remark cli
uses: tj-actions/[email protected]
- name: Verify Changed files
uses: tj-actions/verify-changed-files@v6
id: verify_changed_files
with:
files: |
README.md
- name: Create Pull Request
if: steps.verify_changed_files.outputs.files_changed == 'true'
uses: peter-evans/create-pull-request@v3
with:
base: "main"
title: "Updated README.md"
branch: "chore/update-readme"
commit-message: "Updated README.md"
body: "Updated README.md"
token: ${{ secrets.PAT_TOKEN }}
```

* Free software: [MIT license](LICENSE)

## Features
Expand Down

0 comments on commit 472c93a

Please sign in to comment.