mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Merged master
This commit is contained in:
commit
ca72957293
3
.github/ModPreprocessorDefine.csx
vendored
3
.github/ModPreprocessorDefine.csx
vendored
@ -67,6 +67,7 @@ string AppendNewEntry(string input, string versionNumber)
|
||||
|
||||
// Create the new entry with the correct indentation and next version number
|
||||
string newEntry = indentation + $" \"MIRROR_{nextVersion}_OR_NEWER\"";
|
||||
Console.WriteLine($"New entry: {newEntry}");
|
||||
|
||||
// Find the position of the "defines" HashSet and insert the new entry into it
|
||||
int definesStartIndex = input.IndexOf("HashSet<string> defines = new HashSet<string>");
|
||||
@ -76,6 +77,8 @@ string AppendNewEntry(string input, string versionNumber)
|
||||
input = input.Remove(definesEndIndex - 2, 2); // Remove the trailing "};"
|
||||
input = input.Insert(definesEndIndex - 2, $",\n{newEntry}\n{indentation}}};");
|
||||
|
||||
Console.WriteLine(input);
|
||||
|
||||
return input;
|
||||
}
|
||||
|
||||
|
12
.github/workflows/CreateRelease.yml
vendored
12
.github/workflows/CreateRelease.yml
vendored
@ -33,9 +33,17 @@ jobs:
|
||||
dotnet tool install -g dotnet-script
|
||||
dotnet script --version
|
||||
|
||||
- name: Print Current Directory Before
|
||||
run: pwd
|
||||
|
||||
- name: Run ModPreprocessorDefine.csx
|
||||
run: |
|
||||
dotnet script .github/ModPreprocessorDefine.csx
|
||||
run: dotnet script .github/ModPreprocessorDefine.csx
|
||||
|
||||
- name: Print Current Directory After
|
||||
run: pwd
|
||||
|
||||
- name: Check Git Status
|
||||
run: git status
|
||||
|
||||
- name: Commit and Push
|
||||
run: |
|
||||
|
Loading…
Reference in New Issue
Block a user