-
-
Notifications
You must be signed in to change notification settings - Fork 31
36 lines (30 loc) · 851 Bytes
/
schedule.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
name: Scheduler
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
push:
branches: [main]
jobs:
update-sponsors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set node
uses: actions/setup-node@v4
with:
node-version: lts/*
- run: echo APP_INSIGHT_INSTRUMENT_KEY=example_key >> .env
- run: yarn install
- name: Update sponsors
run: npx sponsorkit
env:
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORKIT_GITHUB_TOKEN }}
SPONSORKIT_GITHUB_LOGIN: ${{ secrets.SPONSORKIT_GITHUB_LOGIN }}
- name: Commit
uses: EndBug/add-and-commit@v9
with:
message: "docs: update sponsors image"
add: "sponsorkit/sponsors.png"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}