Skip to content

Commit

Permalink
fix(flake): package.x86_64-linux.github-deploy flake output attribute
Browse files Browse the repository at this point in the history
The output attribute `package.x86_64-linux.github-deploy` was not a derivation.
  • Loading branch information
jfroche committed Jul 18, 2023
1 parent e438b65 commit a464a94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions command/cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,14 @@ func destroyGitHubDeployments(ctx context.Context, ghCli *github.Client, owner s
Environment: fmt.Sprintf("pr-%d", pullRequestID),
})
if err != nil {
log.Fatalf("Error while listing deployments for PR %d", pr.Number)
log.Fatalf("Error while listing deployments for PR %d", pullRequestID)
}

if len(deployments) == 0 {
if ignoreMissing {
log.Println("No deployments found for PR: ", pr.ID)
log.Println("No deployments found for PR ", pullRequestID)
} else {
log.Fatalf("unable to find deployments related to PR %d", pr.Number)
log.Fatalf("unable to find deployments related to PR %d", pullRequestID)
}
}

Expand All @@ -162,7 +162,7 @@ func destroyGitHubDeployments(ctx context.Context, ghCli *github.Client, owner s
State: refString("inactive"),
})
if err != nil {
log.Println("Error while inactivating deployment for PR:", pr.ID)
log.Println("Error while inactivating deployment for PR ", pullRequestID)
}
}
}
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
with pkgs;
{
devShell = github-deploy.devShell;
packages.${name} = github-deploy;
packages.${name} = github-deploy.github-deploy;
defaultPackage = github-deploy.defaultPackage;
}
);
Expand Down

0 comments on commit a464a94

Please sign in to comment.