-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.17 KB
/
recent-contributions.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
name: fetch and save recent contributions
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
concurrency:
group: fetch-and-save-recent-contributions
cancel-in-progress: true
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.COMMIT_TOKEN }}
- uses: pnpm/action-setup@v2
- name: Setup node env 🏗
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: 'pnpm'
- name: Install dependencies 👨🏻💻
run: pnpm install --frozen-lockfile
- name: fetch recent contributions
run: pnpm --filter @codingfeline/recent-contributions start
env:
GH_PUBLIC_PAT: ${{ secrets.GH_PUBLIC_PAT }}
- name: commit if there are new contributions
run: |
git config --global user.email "recent-contributions-bot@usersusers.noreply.github.com"
git config --global user.name "recent-contributions-bot"
git add ./packages/blog/data/recent-contributions.json
git commit -m "chore: update recent contributions"
git push origin development