From eecf9bff4dafe59d4e4ad59b2d546e4cc3fc05e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harun=20Re=C5=9Fit?= Date: Tue, 12 Sep 2023 21:09:05 +0200 Subject: [PATCH] add reading time to markdown docs (#1501) Co-authored-by: James Monger --- .github/workflows/readiing-time.yml | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/readiing-time.yml diff --git a/.github/workflows/readiing-time.yml b/.github/workflows/readiing-time.yml new file mode 100644 index 000000000..946d81ed1 --- /dev/null +++ b/.github/workflows/readiing-time.yml @@ -0,0 +1,38 @@ +name: Reading Time + +on: + workflow_dispatch: + push: + branches: + - master + paths: + - "**.md" + +jobs: + calculate-reading-time: + runs-on: ubuntu-latest + name: Calculate Reading Time + permissions: + contents: write + pull-requests: write + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Calculate & Prepend Reading Time + uses: harunrst/reading-time-action@v1.0 + with: + strategy: all + + - name: Commit Changes + uses: EndBug/add-and-commit@v9 + with: + message: Edited markdown files with reading times. + push: false + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v4 + with: + title: Update markdown files with reading time. + body: Auto-generated Pull Request by [reading-time-action](https://github.com/harunrst/reading-time-action). + branch: reading-time-action