forked from CHOMPStation2/CHOMPStation2
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.22 KB
/
update_tgs_dmapi.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: Update TGS DMAPI
on:
schedule:
- cron: "0 0 1 */2 *"
workflow_dispatch:
jobs:
update-dmapi:
runs-on: ubuntu-22.04
name: Updates the TGS DMAPI
steps:
- name: Clone
uses: actions/checkout@v4
- name: Branch
run: |
git branch -f tgs-dmapi-update
git checkout tgs-dmapi-update
git reset --hard master
- name: Apply DMAPI update
uses: tgstation/tgs-dmapi-updater@v2
id: dmapi-update
with:
header-path: 'code/__defines/tgs.dm'
library-path: 'code/modules/tgs'
- name: Commit and Push
continue-on-error: true
run: |
git config --local user.email "[email protected]"
git config --local user.name "DMAPI Update"
git add .
git commit -m 'Update TGS DMAPI'
git push -f -u origin tgs-dmapi-update
- name: Create Pull Request
uses: repo-sync/pull-request@v2
with:
source_branch: "tgs-dmapi-update"
destination_branch: "master"
pr_title: "Automatic DMAPI Update"
pr_body: "This pull request updates the DMAPI to the latest version."
pr_label: "Infrastructure"
pr_allow_empty: false
github_token: ${{ secrets.GITHUB_TOKEN }}