-
-
Notifications
You must be signed in to change notification settings - Fork 110
113 lines (104 loc) · 3.35 KB
/
chores.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: chores
on:
push:
branches:
- main
jobs:
regen-i18n:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
set-safe-directory: true
- uses: n1hility/cancel-previous-runs@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install gettext
run: sudo apt-get install -y gettext
- name: Regenerate i18n files
run: make regen-i18n
- name: Cleanup
run: rm -f i18n/*~
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.PAT }}
commit-message: "[Chores] Regen i18n"
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: chores-i18n
delete-branch: true
title: "[Chores] Regen i18n"
draft: false
code-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
set-safe-directory: true
- uses: n1hility/cancel-previous-runs@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Format code
run: ./tools/code-format/format.sh
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.PAT }}
commit-message: "[Chores] Format code"
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: chores-code-format
delete-branch: true
title: "[Chores] Format code"
draft: false
export-mips:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: n1hility/cancel-previous-runs@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Filter repository
env:
FILTER_BRANCH_SQUELCH_WARNING: 1
run: |
cp -rv .github/filter-mips /tmp
/tmp/filter-mips/filter.sh
- name: Pushing result
env:
PAT: ${{ secrets.PAT }}
run: |
git config -l | grep 'http\..*\.extraheader' | cut -d= -f1 | xargs -L1 git config --unset-all
git remote add nugget https://nicolasnoble:[email protected]/pcsx-redux/nugget.git
git push --force https://nicolasnoble:[email protected]/pcsx-redux/nugget.git main
export-support:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: n1hility/cancel-previous-runs@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Filter repository
env:
FILTER_BRANCH_SQUELCH_WARNING: 1
run: |
cp -rv .github/filter-support /tmp
/tmp/filter-support/filter.sh
- name: Pushing result
env:
PAT: ${{ secrets.PAT }}
run: |
git config -l | grep 'http\..*\.extraheader' | cut -d= -f1 | xargs -L1 git config --unset-all
git remote add support https://nicolasnoble:[email protected]/pcsx-redux/support.git
git push --force https://nicolasnoble:[email protected]/pcsx-redux/support.git main