-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37c9795
commit 718676f
Showing
5 changed files
with
86 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters