|
| 1 | +name:Reading Time |
| 2 | + |
| 3 | +on: |
| 4 | +workflow_dispatch: |
| 5 | +push: |
| 6 | +branches: |
| 7 | + -master |
| 8 | +paths: |
| 9 | + -"**.md" |
| 10 | + |
| 11 | +jobs: |
| 12 | +calculate-reading-time: |
| 13 | +runs-on:ubuntu-latest |
| 14 | +name:Calculate Reading Time |
| 15 | +permissions: |
| 16 | +contents:write |
| 17 | +pull-requests:write |
| 18 | +steps: |
| 19 | + -name:Checkout |
| 20 | +uses:actions/checkout@v3 |
| 21 | + |
| 22 | + -name:Calculate & Prepend Reading Time |
| 23 | +uses:harunrst/reading-time-action@v1.0 |
| 24 | +with: |
| 25 | +strategy:all |
| 26 | + |
| 27 | + -name:Commit Changes |
| 28 | +uses:EndBug/add-and-commit@v9 |
| 29 | +with: |
| 30 | +message:Edited markdown files with reading times. |
| 31 | +push:false |
| 32 | + |
| 33 | + -name:Create Pull Request |
| 34 | +uses:peter-evans/create-pull-request@v4 |
| 35 | +with: |
| 36 | +title:Update markdown files with reading time. |
| 37 | +body:Auto-generated Pull Request by [reading-time-action](https://github.com/harunrst/reading-time-action). |
| 38 | +branch:reading-time-action |