Unverified Commit 199ceb81 authored by Hong Minhee's avatar Hong Minhee
Browse files

Automatic sponsor updates

parent b6038fd7
Loading
Loading
Loading
Loading
+52 −0
Original line number Diff line number Diff line
name: sponsors
on:
  schedule:
  #        ┌───────────── minute (0 - 59)
  #        │ ┌───────────── hour (0 - 23)
  #        │ │ ┌───────────── day of the month (1 - 31)
  #        │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
  #        │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
  #        │ │ │ │ │
  #        │ │ │ │ │
  #        │ │ │ │ │
  - cron: '0 * * * *'
  workflow_dispatch:

jobs:
  update-sponsors:
    runs-on: ubuntu-latest
    permissions:
      contents: write
      pull-requests: write
    steps:
    - uses: actions/checkout@v4
      with:
        ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
        persist-credentials: true
        fetch-depth: 0
    - uses: denoland/setup-deno@v1
      with:
        deno-version: v2.x
    - run: |
        set -e
        deno run \
          --allow-net=opencollective.com \
          --allow-read=README.md,SPONSORS.md \
          --allow-write=README.md,SPONSORS.md \
          scripts/sponsors.ts \
          README.md \
          SPONSORS.md
        cat SPONSORS.md
        if ! git diff-index --quiet HEAD --; then
          git add README.md SPONSORS.md
          git config user.name "${GITHUB_ACTOR}"
          git config user.email \
            "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
          git commit -m "Update sponsors"
        fi
    - uses: ad-m/github-push-action@master
      with:
        ssh: true
        branch: main

# cSpell: ignore opencollective
+2 −1
Original line number Diff line number Diff line
@@ -4,7 +4,8 @@
    "cli",
    "src",
    "examples/blog",
    "examples/hono-sample"
    "examples/hono-sample",
    "scripts"
  ],
  "deno.unstable": true,
  "editor.detectIndentation": false,
+24 −0
Original line number Diff line number Diff line
@@ -78,3 +78,27 @@ join our [Matrix chat space][Matrix] or [Discord server][Discord] or
[Lemmy]: https://join-lemmy.org/
[Pixelfed]: https://pixelfed.org/
[PeerTube]: https://joinpeertube.org/


Sponsors
--------

This project exists thanks to all the people who contribute, donate, and sponsor
it.  We are grateful for their support.  We would like to thank the following
financial contributors:[^2]

[^2]: Those lists are automatically updated every hour.

<!-- cSpell: disable -->
<!-- DO NOT EDIT(h3): this section is automatically generated by the script -->

<!-- /DO NOT EDIT -->
<!-- cSpell: enable -->

### Become a sponsor

We welcome financial contributions to help us maintain and improve this project.
If you would like to become a financial contributor, please visit our
[Open Collective].

[Open Collective]: https://opencollective.com/fedify

SPONSORS.md

0 → 100644
+24 −0
Original line number Diff line number Diff line
Sponsors of Fedify
==================

This project exists thanks to all the people who contribute, donate, and sponsor
it.  We are grateful for their support.  We would like to thank the following
financial contributors:[^1]

[^1]: Those lists are automatically updated every hour.

<!-- cSpell: disable -->
<!-- DO NOT EDIT(h2): this section is automatically generated by the script -->

<!-- /DO NOT EDIT -->
<!-- cSpell: enable -->


Become a sponsor
----------------

We welcome financial contributions to help us maintain and improve this project.
If you would like to become a financial contributor, please visit our
[Open Collective].

[Open Collective]: https://opencollective.com/fedify
+1 −0
Original line number Diff line number Diff line
@@ -105,6 +105,7 @@ export default withMermaid(defineConfig({
      },
      { text: "Security policy", link: "/security.md" },
      { text: "Contribute", link: "/contribute.md" },
      { text: "Sponsors", link: "/sponsors.md" },
      { text: "Changelog", link: "/changelog.md" },
    ],

Loading