-
-
Notifications
You must be signed in to change notification settings - Fork 96
42 lines (40 loc) · 1.1 KB
/
sponsors.yaml
File metadata and controls
42 lines (40 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: sponsors
on:
workflow_dispatch:
jobs:
update-sponsors:
## Only run on the upstream repository.
if: github.repository == 'fedify-dev/fedify'
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: 2.4.5 # Keep in sync with mise.toml
- uses: qoomon/actions--setup-git@v1
- 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 commit -m "Update sponsors" || true
fi
- uses: ad-m/github-push-action@master
with:
ssh: true
branch: main
# cSpell: ignore qoomon opencollective