2024-08-06 23:32:41 +00:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
input_to_update:
|
|
|
|
description: 'Flake input to update'
|
|
|
|
required: true
|
|
|
|
type: string
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
update:
|
2024-08-07 01:39:30 +00:00
|
|
|
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
|
|
|
|
|
2024-08-06 23:32:41 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-08-07 00:07:57 +00:00
|
|
|
- run: nix flake lock --update-input "${{ inputs.input_to_update }}"
|
2024-08-06 23:57:54 +00:00
|
|
|
shell: bash
|
2024-08-07 00:17:53 +00:00
|
|
|
- run: |
|
2024-08-07 01:10:58 +00:00
|
|
|
attic login skynet https://nix-cache.skynet.ie/ $CACHE_KEY
|
|
|
|
attic use skynet-cache
|
2024-08-07 02:10:37 +00:00
|
|
|
nix develop --accept-flake-config
|
|
|
|
colmena build -v --on @active-dns -- --accept-flake-config
|
|
|
|
colmena build -v --on @active-core -- --accept-flake-config
|
|
|
|
colmena build -v --on @active -- --accept-flake-config
|
|
|
|
colmena build -v --on @active-ext -- --accept-flake-config
|
|
|
|
colmena build -v --on @active-gitlab -- --accept-flake-config
|
2024-08-07 01:58:58 +00:00
|
|
|
shell: bash
|
|
|
|
- run: |
|
|
|
|
attic login skynet https://nix-cache.skynet.ie/ $CACHE_KEY
|
|
|
|
attic use skynet-cache
|
2024-08-07 02:10:37 +00:00
|
|
|
attic push skynet-cache $(colmena build -- --accept-flake-config)
|
2024-08-07 01:04:53 +00:00
|
|
|
shell: bash
|
2024-08-07 00:17:53 +00:00
|
|
|
#- uses: https://github.com/stefanzweifel/git-auto-commit-action@v5
|