From 041c8d3d10f5e1820e7f51bf88ba85f34bc51197 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Wed, 29 Jan 2025 23:14:39 +0000 Subject: [PATCH] ci: pipeline to update geyser daily ci: test the geyzer update ci: test the geyzer update2 ci: test the geyzer update3 ci: test the geyzer update4 Will only run once a day ci: test the geyzer update5 --- .forgejo/workflows/geyser.yml | 39 +++++++++++++++++++++++++++++++++++ flake.nix | 5 +++++ index.toml | 6 +++++- pack.toml | 2 +- plugins/geyser.pw.toml | 10 ++++----- 5 files changed, 55 insertions(+), 7 deletions(-) create mode 100644 .forgejo/workflows/geyser.yml diff --git a/.forgejo/workflows/geyser.yml b/.forgejo/workflows/geyser.yml new file mode 100644 index 0000000..410891e --- /dev/null +++ b/.forgejo/workflows/geyser.yml @@ -0,0 +1,39 @@ +on: + workflow_dispatch: + + schedule: + - cron: '0 0 * * *' + +# using code from the nixos repo +jobs: +# deploy_active: +# strategy: +# matrix: +# batch: [ active-core, active, active-ext ] +# runs-on: nix +# needs: [ deploy_dns ] +# steps: +# - uses: actions/checkout@v4 +# - run: colmena apply -v --on @${{ matrix.batch }} --show-trace +# shell: bash + + update: + strategy: + matrix: + branch: [ main, skynet, anime_manga ] + runs-on: nix + permissions: + # Give the default GITHUB_TOKEN write permission to commit and push the + # added or changed files to the repository. + contents: write + + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ matrix.branch }} + token: ${{ secrets.PIPELINE_TOKEN }} + - run: nix run .#update_plugin -- update geyser + shell: bash + - uses: https://github.com/stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "Updated geyser for ${{ matrix.branch }}" \ No newline at end of file diff --git a/flake.nix b/flake.nix index 868b796..fd677f5 100644 --- a/flake.nix +++ b/flake.nix @@ -30,6 +30,11 @@ name = "Skynet Mod env"; packages = packages; }; + + packages = { + # nix run .#update_plugin -- update $PLUGIN_NAME + update_plugin = (pkgs.callPackage ./nix/packwiz.nix {}); + }; } ); } diff --git a/index.toml b/index.toml index 552dac0..73d3813 100644 --- a/index.toml +++ b/index.toml @@ -1,5 +1,9 @@ hash-format = "sha256" +[[files]] +file = ".forgejo/workflows/geyser.yml" +hash = "4b7870694ad423e69562fb15217b1dc43bfb8ef914089a895c67dfee3f1832ab" + [[files]] file = "plugins/essentialsx-discord.pw.toml" hash = "804258c5feaea06a885534f2b90fae82cfe03a0667b767e5abe5f8c0abec524e" @@ -17,7 +21,7 @@ metafile = true [[files]] file = "plugins/geyser.pw.toml" -hash = "fc686f27269264a6fa392296160fcf03443725d3555fc55d8571b9b99f528c7b" +hash = "ca8bf1de06f10064f1a4cb227d7c876e944a71896b0e946d63006a17f67a951e" metafile = true [[files]] diff --git a/pack.toml b/pack.toml index 0fb8f51..89eeae6 100644 --- a/pack.toml +++ b/pack.toml @@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0" [index] file = "index.toml" hash-format = "sha256" -hash = "50c1fd39259ff3e2220c59022fd9757b38936beef9981e7aabdc53bae0040749" +hash = "888c1bb8f85c1946a91040d311b3b0a8faad4bff5c3fd952ad7f84c90cdf43a7" [versions] minecraft = "1.21.3" diff --git a/plugins/geyser.pw.toml b/plugins/geyser.pw.toml index f887b7c..cd4d20d 100644 --- a/plugins/geyser.pw.toml +++ b/plugins/geyser.pw.toml @@ -1,13 +1,13 @@ name = "Geyser" -filename = "Geyser-Spigot.jar" +filename = "geyser-fabric-Geyser-Fabric-2.6.0-b739.jar" side = "server" [download] -url = "https://cdn.modrinth.com/data/wKkoqHrH/versions/Ce2no8Zb/Geyser-Spigot.jar" -hash-format = "sha512" -hash = "762a945daac5f40a9ef4d0d197f4dbad159f6ba1ffd4a0c0a0c6d166fe31aff11ac59e945c758f421853b224818250a4cac12a5d168614d3a492fc8d6bca624a" +url = "https://cdn.modrinth.com/data/wKkoqHrH/versions/LRKpBXy0/geyser-fabric-Geyser-Fabric-2.6.0-b739.jar" +hash-format = "sha1" +hash = "f473af5c3ec8b9473bf08879a4c1a55c482a100e" [update] [update.modrinth] mod-id = "wKkoqHrH" -version = "Ce2no8Zb" +version = "LRKpBXy0"