From 83122a4908c6f5367c38a9ca388baaa73071b7ff Mon Sep 17 00:00:00 2001 From: MSWS Date: Sat, 27 Jan 2024 00:06:58 -0800 Subject: [PATCH] Automate version bumps --- .github/workflows/nightly.yml | 2 ++ src/Jailbreak/Jailbreak.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 636085c6..cad45637 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -12,6 +12,8 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Insert Job Version + run: sed -i "s/{GIT_VERSION}/${{github.run_number}}/g" src/Jailbreak/Jailbreak.cs - name: Setup .NET SDK uses: actions/setup-dotnet@v3 diff --git a/src/Jailbreak/Jailbreak.cs b/src/Jailbreak/Jailbreak.cs index de0352d9..1eb90d25 100644 --- a/src/Jailbreak/Jailbreak.cs +++ b/src/Jailbreak/Jailbreak.cs @@ -16,7 +16,7 @@ namespace Jailbreak; public class Jailbreak : BasePlugin { public override string ModuleName => "Jailbreak"; - public override string ModuleVersion => "0.1.0"; + public override string ModuleVersion => "0.1.0.{GIT_VERSION}"; public override string ModuleAuthor => "EdgeGamers Development"; private IServiceProvider _provider;