@cloud-cli/on 1.7.9 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -65,7 +65,18 @@ name: Build and Publish Release
65
65
 
66
66
  on:
67
67
  github:
68
- if: inputs.event === 'push' && inputs.branch === 'main'
68
+ events:
69
+ - push
70
+ owner: octocat
71
+ repo:
72
+ - example
73
+ - another-example
74
+ branches:
75
+ - main
76
+ - releases/*
77
+ paths:
78
+ - package*.json
79
+ if: inputs.action !== 'deleted'
69
80
 
70
81
  concurrency:
71
82
  group: release-${inputs.repo}
@@ -96,6 +107,32 @@ steps:
96
107
  npx --yes semantic-release@24 -b main --no-ci
97
108
  ```
98
109
 
110
+ GitHub triggers support these preprocessor filters:
111
+
112
+ | Field | Match behavior |
113
+ | ----- | -------------- |
114
+ | `events` | Exact webhook event names |
115
+ | `owner`, `repo` | One exact name or a list of accepted names |
116
+ | `branches` | Branch glob patterns such as `main` or `releases/*` |
117
+ | `tag` | `true` requires a tag push; `false` requires a non-tag event |
118
+ | `tags` | Regular expressions matched against the pushed tag |
119
+ | `paths` | Changed-file glob patterns across added, modified, and removed files |
120
+
121
+ Configured fields are combined with AND. Values within one list are combined with OR. `tags` also requires a tag value to match, while `branches` requires a branch value to match. The generic `if` expression is evaluated separately after all preprocessor filters pass.
122
+
123
+ For example, a tag workflow can use `tag: true` with one or more regular expressions:
124
+
125
+ ```yaml
126
+ on:
127
+ github:
128
+ events: [push]
129
+ owner: octocat
130
+ repo: example
131
+ tag: true
132
+ tags:
133
+ - ^v1\..*
134
+ ```
135
+
99
136
  ---
100
137
 
101
138
  ## 💻 CLI Usage & Commands
@@ -211,7 +248,7 @@ The Ingress Gateway listens for incoming HTTP requests and serves the live web U
211
248
 
212
249
  | Method | Endpoint | Description |
213
250
  | ---------- | ------------------ | -------------------------------------------------------------------------------------- |
214
- | **`POST`** | `/webhooks/github` | Webhook endpoint for GitHub events. Evaluates `on.github.if` triggers. |
251
+ | **`POST`** | `/webhooks/github` | Webhook endpoint for GitHub events. Applies GitHub filters and evaluates `on.github.if`. |
215
252
  | **`GET`** | `/runs` | **Dashboard:** Live dark-mode monitoring page listing recent jobs and worker health. |
216
253
  | **`GET`** | `/runs/:jobId` | **Job Report:** Interactive HTML trace view with step timings and terminal log output. |
217
254
 
@@ -0,0 +1,11 @@
1
+ export interface DashboardJob {
2
+ id: number;
3
+ workflowId: string;
4
+ status: string;
5
+ workerId: string | null;
6
+ createdAt: string;
7
+ updatedAt: string;
8
+ }
9
+ export declare function toDashboardJobs(rows: any[]): DashboardJob[];
10
+ export declare function generateDashboardHtml(jobs: DashboardJob[]): string;
11
+ //# sourceMappingURL=dashboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../src/dashboard.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,YAAY,EAAE,CAS3D;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,MAAM,CAElE"}
@@ -0,0 +1,2 @@
1
+ export declare function serializeHtmlState(state: Record<string, unknown>): string;
2
+ //# sourceMappingURL=html-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html-state.d.ts","sourceRoot":"","sources":["../src/html-state.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAIzE"}