forked from Mirror/attic-action
improve action.yml
This commit is contained in:
parent
ce803b732a
commit
00f4a8b31e
3 changed files with 30 additions and 32 deletions
16
action.yml
16
action.yml
|
@ -1,22 +1,26 @@
|
|||
name: "attic"
|
||||
name: "attic-action"
|
||||
author: "Ryan Cao"
|
||||
description: "Cache Nix derivations with attic"
|
||||
|
||||
branding:
|
||||
icon: "layers"
|
||||
color: "blue"
|
||||
|
||||
inputs:
|
||||
endpoint:
|
||||
description: "attic endpoint"
|
||||
description: "Attic endpoint"
|
||||
required: true
|
||||
cache:
|
||||
description: "attic cache"
|
||||
description: "Attic cache name"
|
||||
required: true
|
||||
skip-push:
|
||||
description: "set to true to disable pushing to the cache"
|
||||
description: "Disable pushing to the cache automatically"
|
||||
required: false
|
||||
token:
|
||||
description: "attic token"
|
||||
description: "Attic authorization token"
|
||||
required: false
|
||||
|
||||
runs:
|
||||
using: "node16"
|
||||
main: "dist/index.js"
|
||||
post: "dist/index.js"
|
||||
post-if: "success()"
|
||||
|
|
|
@ -5,11 +5,7 @@
|
|||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
outputs =
|
||||
{ nixpkgs
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
outputs = {nixpkgs, ...}: let
|
||||
mkSystems = sys: builtins.map (arch: "${arch}-${sys}") ["x86_64" "aarch64"];
|
||||
systems =
|
||||
mkSystems "linux"
|
||||
|
@ -20,8 +16,7 @@
|
|||
|
||||
forEachSystem = fn:
|
||||
forAllSystems (s: fn nixpkgsFor.${s});
|
||||
in
|
||||
{
|
||||
in {
|
||||
devShells = forEachSystem (pkgs: {
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
"build": "esbuild src/index.ts --outdir=dist --platform=node --format=cjs --bundle --minify-whitespace --minify-syntax",
|
||||
"format": "prettier --write ."
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "Ryan Cao <hello@ryanccn.dev>",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
Loading…
Reference in a new issue