Skip to content

Commit 80e3d3e

Browse files
committed
refactor: use scm values and a new location
1 parent ff721b7 commit 80e3d3e

File tree

4 files changed

+20
-151
lines changed

4 files changed

+20
-151
lines changed

.ci/updatecli/bump-golang.yml

-143
This file was deleted.

.ci/updatecli/updatecli-bump-golang.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ scms:
66
githubConfig:
77
kind: github
88
spec:
9-
user: '{{ requiredEnv "GIT_USER" }}'
10-
email: '{{ requiredEnv "GIT_EMAIL" }}'
11-
owner: elastic
12-
repository: elastic-agent
9+
user: '{{ requiredEnv "GITHUB_ACTOR" }}'
10+
username: '{{ requiredEnv "GITHUB_ACTOR" }}'
11+
owner: '{{ .scm.owner }}'
12+
repository: '{{ .scm.repository }}'
1313
token: '{{ requiredEnv "GITHUB_TOKEN" }}'
14-
username: '{{ requiredEnv "GIT_USER" }}'
14+
commitusingapi: true
1515
branch: main
1616

1717
actions:

.ci/updatecli/values.d/scm.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
scm:
2+
enabled: true
3+
owner: elastic
4+
repository: elastic-agent
5+
branch: main
6+
# begin updatecli-compose policy values
7+
user: 'github-actions[bot]'
8+
email: '41898282+github-actions[bot]@users.noreply.github.com'
9+
commitusingapi: true
10+
# end updatecli-compose policy values
11+
12+
# This will be moved to the scm section in the future and use
13+
# commitusingapi instead.
14+
signedcommit: true

.github/workflows/bump-golang.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@ jobs:
2525
uses: updatecli/updatecli-action@d0950ebbe80f4f80c3392b288d6a218fae872f69 # v0.76.1
2626

2727
- name: Run Updatecli in Apply mode
28-
run: updatecli apply --config .github/updatecli-bump-golang.yml
28+
run: updatecli apply --config .ci/updatecli/updatecli-bump-golang.yml
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
GIT_USER: "github-actions[bot]"
32-
GIT_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com"
3331

3432
- if: ${{ failure() }}
3533
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0

0 commit comments

Comments
 (0)