summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-05-11 23:11:24 +1000
committerJesse Duffield <jessedduffield@gmail.com>2022-05-11 23:11:24 +1000
commit96147bc11acfc547f51c4298db6a6301d08aaaa6 (patch)
treec90e9bc0e160cbed59cc3166e2101875e63a7ffb /.github
parent8c04118bb144e9f21fc6e1d8fa2fcfc159e21a56 (diff)
add sponsors thingo
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/sponsors.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/sponsors.yml b/.github/workflows/sponsors.yml
new file mode 100644
index 000000000..0fa25803b
--- /dev/null
+++ b/.github/workflows/sponsors.yml
@@ -0,0 +1,27 @@
+# see https://github.com/JamesIves/github-sponsors-readme-action
+name: Generate Sponsors README
+on:
+ push:
+ branches:
+ - master
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout 🛎️
+ uses: actions/checkout@v2
+
+ - name: Generate Sponsors 💖
+ uses: JamesIves/github-sponsors-readme-action@v1.0.8
+ with:
+ token: ${{ secrets.SPONSORS_TOKEN }}
+ file: 'README.md'
+
+ - name: Commit and push if changed
+ run: |-
+ git diff
+ git config --global user.email "actions@users.noreply.github.com"
+ git config --global user.name "README-bot"
+ git add README.md
+ git commit -m "Updated README.md" || exit 0
+ git push