nixos/.forgejo/workflows/update_input.yaml

37 lines
1.2 KiB
YAML
Raw Normal View History

on:
workflow_dispatch:
inputs:
input_to_update:
description: 'Flake input to update'
required: true
type: string
jobs:
update:
runs-on: nix
2024-08-06 23:57:54 +00:00
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
- run: nix flake lock --update-input "${{ inputs.input_to_update }}"
2024-08-06 23:57:54 +00:00
shell: bash
- run: |
attic login skynet https://nix-cache.skynet.ie/ $CACHE_KEY
attic use skynet-cache
nix develop
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
shell: bash
- run: |
attic login skynet https://nix-cache.skynet.ie/ $CACHE_KEY
attic use skynet-cache
attic push skynet-cache $(ls -d /nix/store/*)
shell: bash
#- uses: https://github.com/stefanzweifel/git-auto-commit-action@v5