-
Notifications
You must be signed in to change notification settings - Fork 246
57 lines (49 loc) · 1.64 KB
/
extract-strings.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
name: Extract Strings for Translation
on:
push:
branches:
- 'main'
workflow_dispatch:
permissions:
id-token: write
contents: write
pull-requests: write
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}--${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/long_lived/')) && github.sha || '' }}
cancel-in-progress: true
jobs:
extract-strings:
name: Extract Strings
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node 18.x
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Set up commit signing
uses: Chia-Network/actions/commit-sign/gpg@main
with:
gpg_private_key: ${{ secrets.CHIA_AUTOMATION_PRIVATE_GPG_KEY }}
passphrase: ${{ secrets.CHIA_AUTOMATION_PRIVATE_GPG_PASSPHRASE }}
- name: Extract Strings
run: |
npm install
npm run locale:extract
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
base: main
body: 'Extracted latest strings from source'
branch: string-updates
commit-message: 'Extracted latest strings from source'
delete-branch: true
reviewers: 'paninaro'
assignees: 'paninaro'
title: 'Latest Strings'
token: '${{ secrets.GITHUB_TOKEN }}'
committer: 'ChiaAutomation <[email protected]>'
author: 'ChiaAutomation <[email protected]>'