You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cli/cmd/digger/default.go
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,10 @@ package main
3
3
import (
4
4
"encoding/json"
5
5
"fmt"
6
+
"log/slog"
7
+
"os"
8
+
"runtime/debug"
9
+
6
10
"github.com/diggerhq/digger/cli/pkg/digger"
7
11
"github.com/diggerhq/digger/cli/pkg/drift"
8
12
"github.com/diggerhq/digger/cli/pkg/github"
@@ -13,9 +17,6 @@ import (
13
17
"github.com/diggerhq/digger/libs/policy"
14
18
lib_spec "github.com/diggerhq/digger/libs/spec"
15
19
"github.com/spf13/cobra"
16
-
"log/slog"
17
-
"os"
18
-
"runtime/debug"
19
20
)
20
21
21
22
funcinitLogger() {
@@ -70,6 +71,10 @@ var defaultCmd = &cobra.Command{
70
71
usage.ReportErrorAndExit(spec.VCS.Actor, "Successfully ran spec", 0)
71
72
}
72
73
74
+
ifspecStr=="" {
75
+
slog.Warn("No orchestrator spec found (DIGGER_RUN_SPEC is empty); falling back to backendless mode. If this run was triggered by Digger backend, ensure your workflow passes 'with: digger-spec: ${{ inputs.spec }}' so DIGGER_RUN_SPEC is set.")
0 commit comments