-
Notifications
You must be signed in to change notification settings - Fork 545
42 lines (39 loc) · 1.29 KB
/
compile_changelogs.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
name: Compile changelogs
on:
repository_dispatch:
types: [trigger-compile-changelog]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
CompileCL:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 25
- name: Python setup
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install depends
run: |
python -m pip install --upgrade pip
pip install -r tools/changelog/requirements.txt
- name: Compile CL
run: python tools/changelog/ss13_genchangelog.py html/changelog.html html/changelogs
- name: Commit
run: |
git config --local user.email "[email protected]"
git config --local user.name "D3athrow-Issues"
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Automatic changelog compile [ci skip]" -a || true
fi
git pull origin Bleeding-Edge --rebase
- name: Push
uses: CasperWA/push-protected@v2
with:
#github_token: ${{ secrets.GITHUB_TOKEN }} Use this instead if you have unprotected branches
token: ${{ secrets.CL_TOKEN }}
branch: Bleeding-Edge