-
Notifications
You must be signed in to change notification settings - Fork 865
53 lines (42 loc) · 1.46 KB
/
syncCommunityResources.yml
File metadata and controls
53 lines (42 loc) · 1.46 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
name: 'Sync Community Resources'
on:
schedule:
# weekly on Mondays at 00:00 UTC
- cron: '0 0 * * 1'
workflow_dispatch:
permissions:
contents: read
jobs:
sync-community-resources:
name: Sync Community Resources
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- run: pnpm i
- name: sync-community-resources
run: pnpm build:community-resources
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
# soft fork of https://github.com/peter-evans/create-pull-request for security purposes
uses: tauri-apps/create-pull-request@v3.4.1
if: github.event_name != 'pull_request' && github.event_name != 'push'
with:
token: ${{ secrets.ORG_TAURI_BOT_PAT }}
commit-message: 'chore(docs): Update Community Resources'
branch: ci/v2/update-community-resources
title: Update Community Resources
labels: 'bot'