-
-
Notifications
You must be signed in to change notification settings - Fork 258
37 lines (35 loc) · 1.16 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
name: Compile changelogs
on:
schedule:
- cron: "0 * * * *"
workflow_dispatch:
jobs:
CompileCL:
runs-on: ubuntu-latest
if: github.repository == 'BeeStation/NSV13'
steps:
- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 25
- name: Python setup
uses: actions/setup-python@v1
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 "56381746+ss13-beebot@users.noreply.github.com"
git config --local user.name "ss13-beebot"
git pull origin master
git commit -m "Automatic changelog compile [ci skip]" -a || true
- name: Push
uses: ad-m/github-push-action@master
with:
#github_token: ${{ secrets.GITHUB_TOKEN }} Use this instead if you have unprotected branches
github_token: ${{ secrets.BEEBOT_PAT }}