Skip to content

Commit

Permalink
valid
Browse files Browse the repository at this point in the history
  • Loading branch information
InvalidArgument3 committed Oct 14, 2024
1 parent 37c9795 commit 718676f
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/serversettingsvalidator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: validate syncrange
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "<SyncDistance>20000</SyncDistance>"
replace: "<SyncDistance>20000</SyncDistance>"
include: "**.sbc"
regex: true
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
23 changes: 23 additions & 0 deletions .github/workflows/serversettingsvalidatorstep2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: validate maxplayers after the workflow finishes holy fuck why

on:
workflow_run:
workflows: ["validate syncrange"]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "<MaxPlayers>16</MaxPlayers>"
replace: "<MaxPlayers>100</MaxPlayers>"
include: "**.sbc"
regex: true
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
23 changes: 23 additions & 0 deletions .github/workflows/serversettingsvalidatorstep3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: see offline and set it to public

on:
workflow_run:
workflows: ["validate maxplayers after the workflow finishes holy fuck why"]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "<OnlineMode>OFFLINE</OnlineMode>"
replace: "<OnlineMode>PUBLIC</OnlineMode>"
include: "**.sbc"
regex: true
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4
21 changes: 21 additions & 0 deletions .github/workflows/seworkshopupload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "Upload to Workshop"

on:
workflow_run:
workflows: ["see offline and set it to public"]
types:
- completed

jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: AnarkisGaming/workshop@v1
with:
appID: 244850
publishedFileID: 0
changelog: ${{ github.event.head_commit.message }}
env:
STEAM_ACCOUNT_NAME: ${{ secrets.accountname }}
STEAM_PASSWORD: ${{ secrets.password }}
2 changes: 1 addition & 1 deletion Sandbox_config.sbc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<AssemblerEfficiencyMultiplier>1</AssemblerEfficiencyMultiplier>
<RefinerySpeedMultiplier>1</RefinerySpeedMultiplier>
<OnlineMode>PUBLIC</OnlineMode>
<MaxPlayers>16</MaxPlayers>
<MaxPlayers>100</MaxPlayers>
<MaxFloatingObjects>1024</MaxFloatingObjects>
<TotalBotLimit>32</TotalBotLimit>
<MaxBackupSaves>5</MaxBackupSaves>
Expand Down

0 comments on commit 718676f

Please sign in to comment.