Skip to content

Commit f4eae25

Browse files
loispostulaolblak
andauthored
feat: add dc for ad githubaction and precommit (#2148)
Co-authored-by: Olivier Vernin <olivier@vernin.me>
1 parent 2b33ccc commit f4eae25

File tree

4 files changed

+108
-0
lines changed

4 files changed

+108
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "githubaction autodiscovery"
2+
scms:
3+
default:
4+
kind: git
5+
spec:
6+
url: https://github.com/updatecli/updatecli.git
7+
branch: "main"
8+
9+
autodiscovery:
10+
scmid: default
11+
crawlers:
12+
githubaction:
13+
spec:
14+
digest: true
15+
rootdir: ".github"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "precommit autodiscovery"
2+
scms:
3+
default:
4+
kind: git
5+
spec:
6+
url: https://github.com/updatecli/updatecli.git
7+
branch: "main"
8+
9+
autodiscovery:
10+
scmid: default
11+
crawlers:
12+
precommit:
13+
spec:
14+
digest: true
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: "Github Action"
3+
description: "Discover github action update"
4+
lead: "kind: githubaction"
5+
draft: false
6+
images: []
7+
menu:
8+
docs:
9+
parent: "plugin-autodiscovery"
10+
weight: 130
11+
toc: true
12+
plugins:
13+
- autodiscovery
14+
---
15+
16+
== Description
17+
18+
The Github Action crawler looks recursively for all Github Action workflows.
19+
Then for each of them, it tries to automate its update.
20+
21+
It currently support the following sources:
22+
23+
- link:{{< ref "docker_image" >}}[`dockerimage`]
24+
25+
- link:{{< ref "github_release" >}}[`githubrelease`]
26+
27+
- link:{{< ref "gittag" >}}[`gittag`]
28+
29+
- link:{{< ref "gitbranch" >}}[`gitbranch`]
30+
31+
32+
== Manifest
33+
=== Parameters
34+
35+
{{< autodiscoveryparameters "githubaction" >}}
36+
37+
==== Example
38+
39+
[source,yaml]
40+
----
41+
# updatecli.d/default.yaml
42+
{{<include "assets/code_example/docs/plugins/autodiscovery/githubaction/updatecli.d/default.yaml">}}
43+
----
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: "Precommit"
3+
description: "Discover precommit update"
4+
lead: "kind: precommit"
5+
draft: false
6+
images: []
7+
menu:
8+
docs:
9+
parent: "plugin-autodiscovery"
10+
weight: 130
11+
toc: true
12+
plugins:
13+
- autodiscovery
14+
---
15+
16+
== Description
17+
18+
The Precommit crawler looks recursively for all precommit repository updates.
19+
20+
It currently support the following sources:
21+
22+
- link:{{< ref "gittag" >}}[`gittag`]
23+
24+
25+
== Manifest
26+
=== Parameters
27+
28+
{{< autodiscoveryparameters "precommit" >}}
29+
30+
==== Example
31+
32+
[source,yaml]
33+
----
34+
# updatecli.d/default.yaml
35+
{{<include "assets/code_example/docs/plugins/autodiscovery/precommit/updatecli.d/default.yaml">}}
36+
----

0 commit comments

Comments
 (0)