-
-
Notifications
You must be signed in to change notification settings - Fork 215
65 lines (57 loc) · 1.57 KB
/
build-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
57
58
59
60
61
62
63
64
65
name: ' 📚 Build Dictionaries'
on:
push:
branches:
- main
workflow_dispatch:
inputs:
ref:
description: 'Reference Branch'
type: string
required: false
new-branch:
description: 'PR Branch to create'
type: string
default: update-dictionaries
required: false
permissions:
contents: read
jobs:
build:
if: github.repository_owner == 'streetsidesoftware'
runs-on: ubuntu-latest
env:
NEW_BRANCH: ${{ inputs.new-branch || 'update-dictionaries' }}
REF_BRANCH: ${{ inputs.ref || github.event.inputs.ref }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ env.REF_BRANCH }}
- name: Setup
uses: ./.github/actions/setup
- name: Sort Source
run: |
pnpm run lint:fix:sort-source-files
- name: Re-Install to build
run: |
pnpm run setup
- name: Build
run: |
pnpm run conditional-build
- name: Update Contributors
run: |
pnpm update-contributors ${{ secrets.GITHUB_TOKEN }}
- name: Build Readme
run: |
pnpm run build:readme
- name: PR
uses: ./.github/actions/pr
with:
commit-message: 'fix: Workflow Bot -- Build Dictionaries'
branch: ${{ env.NEW_BRANCH }}
base: ${{ env.REF_BRANCH }}
body: |
## Updated Dictionaries
app_id: ${{ secrets.AUTOMATION_APP_ID }}
app_private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}