nixos/.forgejo/workflows/update_input.yaml
silver 1fcdc400b5 Update .forgejo/workflows/update_input.yaml
Signed-off-by: silver <silver@skynet.ie>
2024-08-07 01:39:46 +00:00

37 lines
No EOL
1.3 KiB
YAML

on:
workflow_dispatch:
inputs:
input_to_update:
description: 'Flake input to update'
required: true
type: string
jobs:
update:
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
#trusted-public-keys = skynet-cache:zMFLzcRZPhUpjXUy8SF8Cf7KGAZwo98SKrzeXvdWABo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
#substituters = https://nix-cache.skynet.ie/skynet-cache https://cache.nixos.org/
- run: nix flake lock --update-input "${{ inputs.input_to_update }}"
shell: bash
- run: |
attic login skynet https://nix-cache.skynet.ie/ $CACHE_KEY
attic use skynet-cache
nix develop --accept-flake-config
colmena build -v --on @active-dns
colmena build -v --on @active-core
colmena build -v --on @active
colmena build -v --on @active-ext
colmena build -v --on @active-gitlab
attic push skynet-cache $(ls -d /nix/store/*/)
shell: bash
#- uses: https://github.com/stefanzweifel/git-auto-commit-action@v5