-
Notifications
You must be signed in to change notification settings - Fork 69
39 lines (34 loc) · 982 Bytes
/
compile-loc.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
name: Compile Localization Files
on:
push:
branches:
- main
jobs:
run:
name: Compile Localization Files
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, 'Localized file check-in by OneLocBuild Task')
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
token: ${{ secrets.AUTOMATION_PAT }}
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 20.x
- uses: pnpm/action-setup@v3
with:
version: 8
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Update source code
run: npm run compile:loc
- name: Commit changes
uses: EndBug/add-and-commit@v7
with:
author_name: Loc Bot
author_email: travisharris@microsoft.com
message: 'Compiling Loc Files'
add: '*.json'