Skip to content

Commit

Permalink
Fix can't manually run workflows on non-master branches
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed May 13, 2024
1 parent be88b30 commit 491609c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Build latest
on: [push, workflow_dispatch]
# trigger via either push to selected branches or on manual run
on:
push:
branches:
- master
- ModernLighting
workflow_dispatch:

concurrency:
group: ${{ github.ref }}-latest
Expand All @@ -10,7 +16,6 @@ jobs:
# ============== .NET 2.0 BUILD =============
# ===========================================
build-mono2:
if: github.ref_name == github.event.repository.default_branch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -43,7 +48,6 @@ jobs:
# ============== .NET 4.0 BUILD =============
# ===========================================
build-mono4:
if: github.ref_name == github.event.repository.default_branch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -85,7 +89,6 @@ jobs:
# ============== .NET 6.0 BUILD =============
# ===========================================
build-dotnet6:
if: github.ref_name == github.event.repository.default_branch
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -155,7 +158,6 @@ jobs:
# ============== .NET 8.0 BUILD =============
# ===========================================
build-dotnet8:
if: github.ref_name == github.event.repository.default_branch
runs-on: ubuntu-latest

steps:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ concurrency:

jobs:
build:
if: github.ref_name == github.event.repository.default_branch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions MCGalaxy/Server/Maintenance/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public static class Updater
"prev_MCGalaxy_.dll", "prev_MCGalaxy.exe", "prev_MCGalaxyCLI.exe");
} catch {
}
Logger.Log(LogType.SystemActivity, "Downloading update files");

WebClient client = HttpUtil.CreateWebClient();
client.DownloadFile(DLL_URL, "MCGalaxy_.update");
Expand Down

0 comments on commit 491609c

Please sign in to comment.