Skip to content

Commit

Permalink
reenable updatecli
Browse files Browse the repository at this point in the history
  • Loading branch information
loispostula committed Nov 1, 2024
1 parent f0be597 commit e1e36f6
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 74 deletions.
14 changes: 11 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
prepare:
npm run prepare

.PHONY:act
act: prepare
act pull_request -j test
PHONY: updatecli-diff
updatecli-diff: ## Run updatecli in diff mode
updatecli compose diff

PHONY: updatecli-apply
updatecli-apply: ## Run updatecli in apply mode
updatecli compose apply

PHONY: updatecli-show
updatecli-show: ## Run updatecli in show mode
updatecli compose show
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export async function fslabscliDownload() {
{
arch: 'x64',
platform: 'linux',
name: 'fslabscli-x86_64-linux',
name: 'cargo-fslabscli-x86_64-linux',
},
]

Expand Down
14 changes: 14 additions & 0 deletions updatecli-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
policies:
- name: Local Updatecli Policies
config:
- updatecli/updatecli.d
values:
- updatecli/values.d/scm.yaml
- name: Handle Updatecli Policy Updates
policy: ghcr.io/updatecli/policies/autodiscovery/updatecli:0.8.0@sha256:99e9e61b501575c2c176c39f2275998d198b590a3f6b1fe829f7315f8d457e7f
values:
- updatecli/values.d/scm.yaml
- name: Handle NPM
policy: ghcr.io/updatecli/policies/autodiscovery/npm:0.11.0
values:
- updatecli/values.d/scm.yaml
31 changes: 0 additions & 31 deletions updatecli/updatecli.d/npm.yaml

This file was deleted.

77 changes: 38 additions & 39 deletions updatecli/updatecli.d/updatecli.yaml
Original file line number Diff line number Diff line change
@@ -1,45 +1,44 @@
pipelineid: version
name: Bump fslabscli version
actions:
default:
title: Bump fslabscli version to {{ source "fslabscli" }}
kind: github/pullrequest
spec:
automerge: true
mergemethod: squash
usetitleforautomerge: true
labels:
- dependencies
- updatecli
scmid: default
default:
title: Bump fslabscli version to {{ source "fslabscli" }}
kind: github/pullrequest
spec:
automerge: true
mergemethod: squash
usetitleforautomerge: true
labels:
- dependencies
- updatecli
scmid: default
scms:
default:
kind: github
spec:
branch: v1
email: [email protected]
owner: ForesightMiningSoftwareCorporation
repository: fslabsci-action
token: '{{requiredEnv "UPDATECLI_GITHUB_TOKEN"}}'
user: ForesightMiningSoftwareCorporation
username: github-actions
disabled: false
default:
kind: github
spec:
branch: "{{ .scm.branch }}"
email: "{{ .scm.email }}"
owner: "{{ .scm.owner }}"
repository: "{{ .scm.repository }}"
username: '{{ requiredEnv "GITHUB_ACTOR" }}'
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
commitusingapi: true
sources:
fslabscli:
name: Get latest fslabscli version
kind: githubrelease
spec:
owner: ForesightMiningSoftwareCorporation
repository: fslabscli
token: '{{requiredEnv "UPDATECLI_GITHUB_TOKEN"}}'
transformers:
- trimprefix: "cargo-fslabscli-"
fslabscli:
name: Get latest fslabscli version
kind: githubrelease
spec:
owner: ForesightMiningSoftwareCorporation
repository: fslabscli
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
transformers:
- trimprefix: "cargo-fslabscli-"
targets:
action:
name: Bump fslabscli version in action.yaml
kind: yaml
spec:
file: action.yaml
key: inputs.version.default
scmid: default
sourceid: fslabscli
action:
name: Bump fslabscli version in action.yaml
kind: yaml
spec:
file: action.yaml
key: $.inputs.version.default
scmid: default
sourceid: fslabscli
8 changes: 8 additions & 0 deletions updatecli/values.d/scm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
scm:
enabled: true
user: fmsc-bot
username: fmsc-bot
email: [email protected]
owner: ForesightMiningSoftwareCorporation
repository: fslabscli-action
branch: v1

0 comments on commit e1e36f6

Please sign in to comment.