Add github workflow
Some checks failed
CI / build (push) Failing after 46s

This commit is contained in:
Fabian Hauser 2025-02-27 11:41:50 +02:00
parent 460ad8d057
commit 141d375aa6
3 changed files with 87 additions and 0 deletions

15
.github/actions/attic-cache/action.yml vendored Normal file
View file

@ -0,0 +1,15 @@
name: "Attic Watch and Push"
description: "Composite action pushes results after the job completes. Needs prior attic-cache action to have executed successfully."
inputs:
cache_repository:
description: "Cache repository to use with attic"
required: true
runs:
using: "composite"
steps:
- name: Attic Push Results
shell: "nix shell nixpkgs#attic-client --command {0}"
run: |
attic push "${{ inputs.cache_repository }}" "./result" # TODO: Make this smarter