From 6509f099616e843d312d1393eaf6400faa050fa6 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 14 Aug 2023 16:39:39 +0900 Subject: [PATCH] Set up GitHub Sponsors Readme Action (#3398) --- .github/workflows/sponsors.yml | 24 ++++++++++++++++++++++++ typos.toml | 3 +++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/sponsors.yml diff --git a/.github/workflows/sponsors.yml b/.github/workflows/sponsors.yml new file mode 100644 index 00000000000..d29872288f6 --- /dev/null +++ b/.github/workflows/sponsors.yml @@ -0,0 +1,24 @@ +--- +name: Generate Sponsors README +on: + workflow_dispatch: + schedule: + - cron: 0 * * * * +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v2 + + - name: Generate Sponsors 💖 + uses: JamesIves/github-sponsors-readme-action@v1 + with: + token: ${{ secrets.SPONSORS_TOKEN }} + file: 'README.md' + + - name: Deploy to GitHub Pages 🚀 + uses: JamesIves/github-pages-deploy-action@v4 + with: + branch: master + folder: '.' diff --git a/typos.toml b/typos.toml index 19f64adbfb0..f370b99280d 100644 --- a/typos.toml +++ b/typos.toml @@ -4,3 +4,6 @@ ba = "ba" fo = "fo" enew = "enew" tabe = "tabe" + +[files] +extend-exclude = ["README.md"]