-
-
Notifications
You must be signed in to change notification settings - Fork 28
48 lines (40 loc) · 1.02 KB
/
generate-files.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
name: Generate Files
on:
pull_request_target:
branches:
- dev
paths:
- i18n/languages/*.json
- version.json
push:
branches:
- dev
paths:
- i18n/languages/*.json
- version.json
workflow_dispatch:
jobs:
generate_files:
name: Generate Files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}
if: github.event_name == 'pull_request'
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.TOKEN }}
if: github.event_name != 'pull_request'
- name: Generate Languages
run: ./generate-languages.ps1
shell: pwsh
- name: Generate Version
run: ./generate-version.ps1
shell: pwsh
- name: Git Auto Commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Update Generated Files"