This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 471
62 lines (49 loc) · 1.77 KB
/
daily.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
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Run daily cron script
on:
workflow_dispatch: # Manual testing
schedule:
- cron: '0 0 * * *'
jobs:
daily:
if: ${{ 'chakra-ui/chakra-ui-docs' == github.repository }}
runs-on: ubuntu-latest
steps:
- name: Get pnpm cache path
id: pnpm-cache
run: echo "::set-output name=dir::$(pnpm cache dir)"
- name: Checkout
uses: actions/checkout@master
with:
ref: main
- name: Install
uses: ./.github/composite-actions/install
- name: Setup Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Generate avatars and all-sponsorsrc
run: pnpm avatars:gen
- name: Commit avatars and all-sponsorsrc
run: |
git add public/avatars
git diff --staged --quiet || git commit -m "chore(avatars): $GITHUB_SHA"
git add .all-sponsorsrc
git diff --staged --quiet || git commit -m "chore(.all-sponsorsrc): $GITHUB_SHA"
- name: Generate all-membersrc
run: pnpm members:gen
- name: Commit all-membersrc
run: |
git add .all-membersrc
git diff --staged --quiet || git commit -m "chore(.all-membersrc): $GITHUB_SHA"
- name: Generate all-former-membersrc
run: pnpm former-members:gen
- name: Commit all-former-membersrc
run: |
git add .all-former-membersrc
git diff --staged --quiet || git commit -m "chore(.all-former-membersrc): $GITHUB_SHA"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
delete-branch: true
title: update sponsors, members, and avatars
branch: chore/daily-updates