Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/updatecli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: "Setup updatecli"
uses: "updatecli/updatecli-action@5ca36367fadc6ad94d590984fd9c696e783ec635" # v2.96.0
with:
version: "v0.113.0-rc.1"
version: "v0.113.0"

- name: "Run updatecli"
run: updatecli compose apply --clean-git-branches=true --experimental
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/updatecli_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
- name: "Setup updatecli"
uses: "updatecli/updatecli-action@5ca36367fadc6ad94d590984fd9c696e783ec635" # v2.96.0
with:
version: "v0.113.0-rc.1"
version: "v0.113.0"

- name: "Test updatecli in dry-run mode"
run: "updatecli compose diff"
env:
# This step is executed in untrusted context. We use a GitHub token with minimal permissions.
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
UPDATECLI_GITHUB_USERNAME: ${{ github.actor }}
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/updatecli_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: "Setup updatecli"
uses: "updatecli/updatecli-action@5ca36367fadc6ad94d590984fd9c696e783ec635" # v2.96.0
with:
version: "v0.113.0-rc.1"
version: "v0.113.0"

- name: "Run updatecli only on existing pipelines"
run: updatecli compose apply --clean-git-branches=true --existing-only=true --experimental
Expand Down
141 changes: 69 additions & 72 deletions updatecli/updatecli.d/updatecli.yaml
Original file line number Diff line number Diff line change
@@ -1,81 +1,78 @@
name: "deps: bump updatecli version"
pipelineid: "updatecli_action_version"
actions:
default:
kind: "github/pullrequest"
spec:
title: 'deps: update updatecli version to {{ source "updatecli" }}'
automerge: true
mergemethod: "squash"
usetitleforautomerge: true
reviewers:
- "updatecli/core"
labels:
- "dependencies"
- "updatecli"
scmid: "default"
default:
kind: "github/pullrequest"
spec:
title: 'deps: update updatecli version to {{ source "updatecli" }}'
automerge: true
mergemethod: "squash"
usetitleforautomerge: true
reviewers:
- "updatecli/core"
labels:
- "dependencies"
- "updatecli"
scmid: "default"
scms:
default:
kind: "github"
spec:
branch: '{{ .scm.branch }}'
email: ' {{ .scm.email }}'
owner: '{{ .scm.owner }}'
repository: '{{ .scm.repository }}'
token: '{{requiredEnv "GITHUB_TOKEN"}}'
user: '{{ .scm.user }}'
username: '{{ .scm.username }}'
commitusingapi: true
disabled: false
default:
kind: "github"
spec:
branch: "{{ .scm.branch }}"
email: " {{ .scm.email }}"
owner: "{{ .scm.owner }}"
repository: "{{ .scm.repository }}"
user: "{{ .scm.user }}"
commitusingapi: true
disabled: false
sources:
updatecli:
name: "Get latest updatecli version"
kind: "githubrelease"
spec:
owner: "updatecli"
repository: "updatecli"
token: '{{requiredEnv "GITHUB_TOKEN"}}'
versionfilter:
kind: "semver"
updatecli:
name: "Get latest updatecli version"
kind: "githubrelease"
spec:
owner: "updatecli"
repository: "updatecli"
versionfilter:
kind: "semver"
targets:
src-main:
name: 'deps: bump updatecli version in src/main.js to {{ source "updatecli" }}'
kind: "file"
spec:
file: "src/main.js"
matchpattern: 'const DEFAULT_VERSION = (.+)'
replacepattern: 'const DEFAULT_VERSION = `{{ source "updatecli" }}`'
scmid: "default"
sourceid: "updatecli"
src-main:
name: 'deps: bump updatecli version in src/main.js to {{ source "updatecli" }}'
kind: "file"
spec:
file: "src/main.js"
matchpattern: "const DEFAULT_VERSION = (.+)"
replacepattern: 'const DEFAULT_VERSION = `{{ source "updatecli" }}`'
scmid: "default"
sourceid: "updatecli"

test-main:
name: 'deps: bump updatecli version in tests/main.test.js to {{ source "updatecli" }}'
kind: "file"
spec:
file: "tests/main.test.js"
matchpattern: "const DEFAULT_VERSION = (.+)"
replacepattern: 'const DEFAULT_VERSION = `{{ source "updatecli" }}`'
scmid: "default"
sourceid: "updatecli"
test-main:
name: 'deps: bump updatecli version in tests/main.test.js to {{ source "updatecli" }}'
kind: "file"
spec:
file: "tests/main.test.js"
matchpattern: "const DEFAULT_VERSION = (.+)"
replacepattern: 'const DEFAULT_VERSION = `{{ source "updatecli" }}`'
scmid: "default"
sourceid: "updatecli"

dist:
name: 'chore: rebuild the dist directory'
dependson:
- "src-main"
- "test-main"
disablesourceinput: true
kind: shell
scmid: "default"
dist:
name: "chore: rebuild the dist directory"
dependson:
- "src-main"
- "test-main"
disablesourceinput: true
kind: shell
scmid: "default"
spec:
command: |
npm ci
npm run prepare
changedif:
kind: file/checksum
spec:
command: |
npm ci
npm run prepare
changedif:
kind: file/checksum
spec:
files:
- "dist/index.js"
- "dist/index.js.map"
environments:
- name: "PATH"
- name: "HOME"
files:
- "dist/index.js"
- "dist/index.js.map"
environments:
- name: "PATH"
- name: "HOME"
7 changes: 3 additions & 4 deletions updatecli/values.d/scm.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
scm:
enabled: true
user: updatecli
email: updatecli-[email protected]
user: updateclibot
email: [email protected]
owner: updatecli
repository: updatecli-action
username: "updatecli"
branch: v2
repository: updatecli-action