From b38bef4e1f9c1f165ed82a01b790961a95ea4f66 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 --- .forgejo/workflows/geyser.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) 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..ae574c6 --- /dev/null +++ b/.forgejo/workflows/geyser.yml @@ -0,0 +1,39 @@ +on: + workflow_dispatch: + + schedule: + - cron: '* * * * *' + +# 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 nixpkgs#packwiz 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