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
(cherry picked from commit 041c8d3d10
)
This commit is contained in:
parent
5672d5efb0
commit
c6670f7258
2 changed files with 44 additions and 0 deletions
39
.forgejo/workflows/geyser.yml
Normal file
39
.forgejo/workflows/geyser.yml
Normal file
|
@ -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 }}"
|
|
@ -30,6 +30,11 @@
|
||||||
name = "Skynet Mod env";
|
name = "Skynet Mod env";
|
||||||
packages = packages;
|
packages = packages;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
packages = {
|
||||||
|
# nix run .#update_plugin -- update $PLUGIN_NAME
|
||||||
|
update_plugin = (pkgs.callPackage ./nix/packwiz.nix {});
|
||||||
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue