mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 10:22:13 +00:00
Adds automatic TGS DMAPI updates
Runs every UTC midnight, makes a PR if there's an update
This commit is contained in:
45
.github/workflows/update_tgs_dmapi.yml
vendored
Normal file
45
.github/workflows/update_tgs_dmapi.yml
vendored
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
name: Update TGS DMAPI
|
||||||
|
|
||||||
|
on:
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-dmapi:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Update the TGS DMAPI
|
||||||
|
steps:
|
||||||
|
- name: Clone
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- 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
|
||||||
|
with:
|
||||||
|
header-path: 'code/__DEFINES/tgs.dm'
|
||||||
|
library-path: 'code/modules/tgs'
|
||||||
|
|
||||||
|
- name: Commit and Push
|
||||||
|
run: |
|
||||||
|
git config user.name tgstation-server
|
||||||
|
git config user.email tgstation-server@users.noreply.github.Commit
|
||||||
|
git commit -a -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 TGS DMAPI Update"
|
||||||
|
pr_body: "This pull request updates the TGS DMAPI to the latest version. Please note any breaking or unimplemented changes before merging."
|
||||||
|
pr_label: "Tools"
|
||||||
|
pr_allow_empty: false
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
Reference in New Issue
Block a user