Skip to content

Commit e1e36f6

Browse files
committed
reenable updatecli
1 parent f0be597 commit e1e36f6

File tree

6 files changed

+72
-74
lines changed

6 files changed

+72
-74
lines changed

Makefile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
prepare:
33
npm run prepare
44

5-
.PHONY:act
6-
act: prepare
7-
act pull_request -j test
5+
PHONY: updatecli-diff
6+
updatecli-diff: ## Run updatecli in diff mode
7+
updatecli compose diff
8+
9+
PHONY: updatecli-apply
10+
updatecli-apply: ## Run updatecli in apply mode
11+
updatecli compose apply
12+
13+
PHONY: updatecli-show
14+
updatecli-show: ## Run updatecli in show mode
15+
updatecli compose show

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export async function fslabscliDownload() {
1111
{
1212
arch: 'x64',
1313
platform: 'linux',
14-
name: 'fslabscli-x86_64-linux',
14+
name: 'cargo-fslabscli-x86_64-linux',
1515
},
1616
]
1717

updatecli-compose.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
policies:
2+
- name: Local Updatecli Policies
3+
config:
4+
- updatecli/updatecli.d
5+
values:
6+
- updatecli/values.d/scm.yaml
7+
- name: Handle Updatecli Policy Updates
8+
policy: ghcr.io/updatecli/policies/autodiscovery/updatecli:0.8.0@sha256:99e9e61b501575c2c176c39f2275998d198b590a3f6b1fe829f7315f8d457e7f
9+
values:
10+
- updatecli/values.d/scm.yaml
11+
- name: Handle NPM
12+
policy: ghcr.io/updatecli/policies/autodiscovery/npm:0.11.0
13+
values:
14+
- updatecli/values.d/scm.yaml

updatecli/updatecli.d/npm.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,44 @@
11
pipelineid: version
22
name: Bump fslabscli version
33
actions:
4-
default:
5-
title: Bump fslabscli version to {{ source "fslabscli" }}
6-
kind: github/pullrequest
7-
spec:
8-
automerge: true
9-
mergemethod: squash
10-
usetitleforautomerge: true
11-
labels:
12-
- dependencies
13-
- updatecli
14-
scmid: default
4+
default:
5+
title: Bump fslabscli version to {{ source "fslabscli" }}
6+
kind: github/pullrequest
7+
spec:
8+
automerge: true
9+
mergemethod: squash
10+
usetitleforautomerge: true
11+
labels:
12+
- dependencies
13+
- updatecli
14+
scmid: default
1515
scms:
16-
default:
17-
kind: github
18-
spec:
19-
branch: v1
20-
21-
owner: ForesightMiningSoftwareCorporation
22-
repository: fslabsci-action
23-
token: '{{requiredEnv "UPDATECLI_GITHUB_TOKEN"}}'
24-
user: ForesightMiningSoftwareCorporation
25-
username: github-actions
26-
disabled: false
16+
default:
17+
kind: github
18+
spec:
19+
branch: "{{ .scm.branch }}"
20+
email: "{{ .scm.email }}"
21+
owner: "{{ .scm.owner }}"
22+
repository: "{{ .scm.repository }}"
23+
username: '{{ requiredEnv "GITHUB_ACTOR" }}'
24+
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
25+
commitusingapi: true
2726
sources:
28-
fslabscli:
29-
name: Get latest fslabscli version
30-
kind: githubrelease
31-
spec:
32-
owner: ForesightMiningSoftwareCorporation
33-
repository: fslabscli
34-
token: '{{requiredEnv "UPDATECLI_GITHUB_TOKEN"}}'
35-
transformers:
36-
- trimprefix: "cargo-fslabscli-"
27+
fslabscli:
28+
name: Get latest fslabscli version
29+
kind: githubrelease
30+
spec:
31+
owner: ForesightMiningSoftwareCorporation
32+
repository: fslabscli
33+
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
34+
transformers:
35+
- trimprefix: "cargo-fslabscli-"
3736
targets:
38-
action:
39-
name: Bump fslabscli version in action.yaml
40-
kind: yaml
41-
spec:
42-
file: action.yaml
43-
key: inputs.version.default
44-
scmid: default
45-
sourceid: fslabscli
37+
action:
38+
name: Bump fslabscli version in action.yaml
39+
kind: yaml
40+
spec:
41+
file: action.yaml
42+
key: $.inputs.version.default
43+
scmid: default
44+
sourceid: fslabscli

updatecli/values.d/scm.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
scm:
2+
enabled: true
3+
user: fmsc-bot
4+
username: fmsc-bot
5+
6+
owner: ForesightMiningSoftwareCorporation
7+
repository: fslabscli-action
8+
branch: v1

0 commit comments

Comments
 (0)