Skip to content

Commit 6ee90ec

Browse files
committed
deps: update updatecli workflow
Signed-off-by: Olivier Vernin <olivier@vernin.me>
1 parent 701d5fb commit 6ee90ec

File tree

4 files changed

+21
-5
lines changed

4 files changed

+21
-5
lines changed

.github/workflows/updatecli.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
release:
44
workflow_dispatch:
55
schedule:
6-
# Run at 12:00 every Saterday every 14 days
6+
# Run at 12:00 every 14 days
77
- cron: 0 12 */14 * *
88

99
jobs:
@@ -16,7 +16,7 @@ jobs:
1616
- name: "Setup updatecli"
1717
uses: "updatecli/updatecli-action@5ca36367fadc6ad94d590984fd9c696e783ec635" # v2.96.0
1818
with:
19-
version: "v0.113.0-rc.1"
19+
version: "v0.114.0"
2020

2121
- name: "Set up Go"
2222
uses: "actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c" # v6.1.0

.github/workflows/updatecli_test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: "Setup updatecli"
1717
uses: "updatecli/updatecli-action@5ca36367fadc6ad94d590984fd9c696e783ec635" # v2.96.0
1818
with:
19-
version: "v0.113.0-rc.1"
19+
version: "v0.114.0"
2020

2121
- name: "Set up Go"
2222
uses: "actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c" # v6.1.0
@@ -28,5 +28,5 @@ jobs:
2828
run: "updatecli compose diff"
2929
env:
3030
# This step is executed in untrusted context. We use a GitHub token with minimal permissions.
31-
GITHUB_ACTOR: ${{ github.actor }}
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
UPDATECLI_GITHUB_USERNAME: ${{ github.actor }}
32+
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/updatecli_update.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ jobs:
2626
go-version-file: "go.mod"
2727
id: go
2828

29+
- name: "Run updatecli only on monitored pipelines"
30+
run: updatecli compose apply --clean-git-branches=true --labels="monitoring:enabled" --experimental
31+
env:
32+
UPDATECLI_GITHUB_APP_CLIENT_ID: ${{ secrets.UPDATECLIBOT_APP_ID }}
33+
UPDATECLI_GITHUB_APP_PRIVATE_KEY: ${{ secrets.UPDATECLIBOT_APP_PRIVKEY }}
34+
UPDATECLI_GITHUB_APP_INSTALLATION_ID: ${{ secrets.UPDATECLIBOT_APP_INSTALLATION_ID }}
35+
UPDATECLI_UDASH_API_URL: ${{ secrets.UPDATECLI_UDASH_API_URL }}
36+
UPDATECLI_UDASH_ACCESS_TOKEN: ${{ secrets.UPDATECLI_UDASH_ACCESS_TOKEN }}
37+
UPDATECLI_UDASH_URL: ${{ secrets.UPDATECLI_UDASH_URL }}
38+
2939
- name: "Run updatecli only on existing pipelines"
3040
run: updatecli compose apply --clean-git-branches=true --existing-only=true --experimental
3141
env:

updatecli-compose.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,9 @@ policies:
3737
policy: ghcr.io/updatecli/policies/autodiscovery/githubaction:0.2.1@sha256:cfddec11464cc09615135f0f1e069f00ad24d28edc7cc6a4e8224e04c3699008
3838
values:
3939
- updatecli/values.d/scm.yaml
40+
41+
- name: Update Updatecli version in GitHub action
42+
policy: ghcr.io/updatecli/policies/updatecli/githubaction:0.7.0
43+
values:
44+
- updatecli/values.d/scm.yaml
45+
- updatecli/values.d/githubaction.yaml

0 commit comments

Comments
 (0)