-
Notifications
You must be signed in to change notification settings - Fork 865
56 lines (45 loc) · 1.52 KB
/
syncSponsorsData.yml
File metadata and controls
56 lines (45 loc) · 1.52 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: 'Sync Sponsors Data'
on:
schedule:
# daily
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
sync-sponsors-data:
name: Sync Sponsors Data
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- uses: pnpm/action-setup@v5
- uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
- run: pnpm i
- name: sync-sponsors
run: pnpm sync:sponsors
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm prettier src/data -w
# tauri-docs PR
- name: Git config
run: |
git config --global user.name "tauri-bot"
git config --global user.email "tauri-bot@tauri.app"
- name: Create pull request for updated docs
id: cpr
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # 8.1.1
if: github.event_name != 'pull_request' && github.event_name != 'push'
with:
token: ${{ secrets.ORG_TAURI_BOT_PAT }}
commit-message: 'chore(docs): Update Sponsors Data'
branch: ci/v2/update-sponsors
title: Update Sponsors Data
labels: 'bot'
sign-commits: true
- name: Automerge
if: steps.cpr.outputs.pull-request-operation == 'created' || steps.cpr.outputs.pull-request-operation == 'updated'
run: gh pr merge --squash --auto ${{ steps.cpr.outputs.pull-request-number }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}