-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
49 lines (40 loc) · 1.14 KB
/
sponsors.yml
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
43
44
45
46
47
48
49
name: Update Sponsors
on:
schedule:
# Run once a day, at 4pm
- cron: '0 16 * * *'
# Allow manual trigger
workflow_dispatch:
env:
FORCE_COLOR: 2
permissions:
contents: read
jobs:
fetch:
permissions:
contents: write # for peter-evans/create-pull-request to create branch
pull-requests: write # for peter-evans/create-pull-request to create a PR
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/[email protected]
with:
node-version: lts/*
cache: 'npm'
- name: Install npm dependencies
run: npm ci
- name: Update the README
run: npm run update-sponsors
env:
CHEERIO_SPONSORS_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IMGIX_TOKEN: ${{ secrets.IMGIX_TOKEN }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
continue-on-error: true
with:
commit-message: 'docs(readme): Update Sponsors'
title: Update Sponsors
branch: docs/sponsors
delete-branch: true