-
-
Notifications
You must be signed in to change notification settings - Fork 117
133 lines (124 loc) · 4.06 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
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 <noreply@github.com>
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 <noreply@github.com>
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: Install doxygen
run: sudo apt-get install -y doxygen graphviz
- name: Filter repository
env:
FILTER_BRANCH_SQUELCH_WARNING: 1
run: |
cp -rv .github/filter-mips /tmp
cp src/mips/Doxyfile /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:$PAT@github.com/pcsx-redux/nugget.git
git push --force https://nicolasnoble:$PAT@github.com/pcsx-redux/nugget.git main
- name: Creating documentation
run: |
doxygen /tmp/Doxyfile
mv html /tmp
rm -rf latex
git checkout --orphan gh_pages
git rm -rf .
mv /tmp/html/* .
git add .
git config --global user.email "pixel@nobis-crew.org."
git config --global user.name 'Nicolas "Pixel" Noble'
git commit -m "Documentation."
- name: Pushing documentation
env:
PAT: ${{ secrets.PAT }}
run: |
git push --force https://nicolasnoble:$PAT@github.com/pcsx-redux/nugget.git gh_pages
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:$PAT@github.com/pcsx-redux/support.git
git push --force https://nicolasnoble:$PAT@github.com/pcsx-redux/support.git main