Skip to content

Commit

Permalink
add when to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
MayNiklas committed Apr 1, 2024
1 parent d95b473 commit 1619957
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .woodpecker/x86-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,5 +189,19 @@
"image": "bash",
"name": "Push the-hub to Attic"
}
],
"when": [
{
"event": "manual"
},
{
"branch": "main",
"event": "push"
},
{
"branch": "main",
"event": "pull_request",
"repo": "MayNiklas/update_flake_lock_action"
}
]
}
5 changes: 5 additions & 0 deletions packages/woodpecker-pipeline/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ let
backend = "local";
platform = woodpecker-platforms."${arch}";
};
when = pkgs.lib.lists.flatten ([
{ event = "manual"; }
{ event = "push"; branch = "main"; }
{ event = "pull_request"; branch = "main"; repo = "MayNiklas/update_flake_lock_action"; }
]);
steps = pkgs.lib.lists.flatten ([ nixFlakeShow ] ++ [ atticSetupStep ]
++ (map
(host:
Expand Down

0 comments on commit 1619957

Please sign in to comment.