ci: lets go back and see if old issues could be fixed with limiting the concurrency
This commit is contained in:
parent
93493a971c
commit
c3f1f9bba0
2 changed files with 14 additions and 63 deletions
|
@ -1,28 +0,0 @@
|
||||||
name: 'Update_Geyser'
|
|
||||||
description: 'Updates Geyser for a specified branch'
|
|
||||||
inputs:
|
|
||||||
branch: # id of input
|
|
||||||
description: 'what branch to update'
|
|
||||||
required: true
|
|
||||||
default: 'main'
|
|
||||||
token: # id of input
|
|
||||||
description: 'Token needed to commit changes'
|
|
||||||
required: true
|
|
||||||
runs:
|
|
||||||
using: "composite"
|
|
||||||
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: ${{ inputs.branch }}
|
|
||||||
token: ${{ inputs.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 ${{ inputs.branch }}"
|
|
||||||
- run: git checkout main
|
|
||||||
shell: bash
|
|
|
@ -1,26 +1,19 @@
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * *'
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
# using code from the nixos repo
|
|
||||||
jobs:
|
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:
|
update:
|
||||||
# strategy:
|
|
||||||
# matrix:
|
strategy:
|
||||||
# branch: [ main, skynet, anime_manga ]
|
max-parallel: 1
|
||||||
|
matrix:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
- skynet
|
||||||
|
- anime_manga
|
||||||
|
- games
|
||||||
runs-on: nix
|
runs-on: nix
|
||||||
permissions:
|
permissions:
|
||||||
# Give the default GITHUB_TOKEN write permission to commit and push the
|
# Give the default GITHUB_TOKEN write permission to commit and push the
|
||||||
|
@ -30,24 +23,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
ref: ${{ matrix.branch }}
|
||||||
- name: "main"
|
|
||||||
uses: ./.forgejo/actions/update_branch
|
|
||||||
with:
|
|
||||||
branch: "main"
|
|
||||||
token: ${{ secrets.PIPELINE_TOKEN }}
|
token: ${{ secrets.PIPELINE_TOKEN }}
|
||||||
- name: "skynet"
|
- run: nix run .#update_plugin -- update geyser
|
||||||
uses: ./.forgejo/actions/update_branch
|
shell: bash
|
||||||
|
- uses: https://github.com/stefanzweifel/git-auto-commit-action@v5
|
||||||
with:
|
with:
|
||||||
branch: "skynet"
|
commit_message: "Updated geyser for ${{ matrix.branch }}"
|
||||||
token: ${{ secrets.PIPELINE_TOKEN }}
|
|
||||||
- name: "anime_manga"
|
|
||||||
uses: ./.forgejo/actions/update_branch
|
|
||||||
with:
|
|
||||||
branch: "anime_manga"
|
|
||||||
token: ${{ secrets.PIPELINE_TOKEN }}
|
|
||||||
- name: "games"
|
|
||||||
uses: ./.forgejo/actions/update_branch
|
|
||||||
with:
|
|
||||||
branch: "games"
|
|
||||||
token: ${{ secrets.PIPELINE_TOKEN }}
|
|
Loading…
Add table
Add a link
Reference in a new issue