forked from streetsidesoftware/cspell-dicts
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (46 loc) · 1.35 KB
/
update-dictionaries.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
## Give each dictionary the chance to download new content and build
## It is necessary for the dictionary to have the `update-dictionary` script.
name: ' 📚 Update Dictionaries'
on:
workflow_dispatch:
schedule:
- cron: '0 12 * * 0'
permissions:
contents: read
jobs:
update-dictionaries:
if: github.repository_owner == 'streetsidesoftware'
runs-on: ubuntu-latest
env:
NEW_BRANCH: 'update-dictionaries'
REF_BRANCH: main
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ env.REF_BRANCH }}
- name: Setup
uses: ./.github/actions/setup
- name: Update
run: |
pnpm update-dictionaries
- name: Install
run: |
pnpm i
- name: Lint
run: |
pnpm lint
- name: PR Body
id: body
uses: streetsidesoftware/actions/public/pr-body@v1
with:
title: Update Dictionaries
- name: PR
uses: streetsidesoftware/actions/.github/actions/pr@v1
with:
commit-message: 'fix: Workflow Bot -- Update Dictionaries'
branch: ${{ env.NEW_BRANCH }}
base: ${{ env.REF_BRANCH }}
body: ${{ steps.body.outputs.body }}
app_id: ${{ secrets.AUTOMATION_APP_ID }}
app_private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}