Skip to content

Commit 3784d43

Browse files
authored
deps: update updatecli workfow (#28)
Signed-off-by: Olivier Vernin <olivier@vernin.me>
1 parent 5c8461f commit 3784d43

3 files changed

Lines changed: 16 additions & 9 deletions

File tree

.github/workflows/updatecli.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
schedule:
66
# Run at 12:00 every Saterday every 14 days
7-
- cron: "0 12 */14 * 6"
7+
- cron: "0 12 */14 * *"
88
jobs:
99
updatecli:
1010
runs-on: ubuntu-latest
@@ -13,8 +13,6 @@ jobs:
1313
uses: "actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8" # v6.0.1
1414
- name: "Setup updatecli"
1515
uses: "updatecli/updatecli-action@b846825b298f5351abd80f94c4f9eab63a38a804" # v2.98.0
16-
with:
17-
version: "v0.113.0-rc.1"
1816
- name: "Run updatecli"
1917
run: updatecli compose apply --clean-git-branches=true --experimental
2018
env:

.github/workflows/updatecli_test.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
steps:
1111
- name: "Checkout"
1212
uses: "actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8" # v6.0.1
13+
1314
- name: "Setup updatecli"
1415
uses: "updatecli/updatecli-action@b846825b298f5351abd80f94c4f9eab63a38a804" # v2.98.0
15-
with:
16-
version: "v0.113.0-rc.1"
16+
1717
- name: "Test updatecli in dry-run mode"
1818
run: "updatecli compose diff"
1919
env:
2020
# This step is executed in untrusted context. We use a GitHub token with minimal permissions.
21-
GITHUB_ACTOR: ${{ github.actor }}
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
UPDATECLI_GITHUB_USERNAME: ${{ github.actor }}
22+
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/updatecli_update.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,17 @@ jobs:
1616
uses: "actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8" # v6.0.1
1717
- name: "Setup updatecli"
1818
uses: "updatecli/updatecli-action@b846825b298f5351abd80f94c4f9eab63a38a804" # v2.98.0
19-
with:
20-
version: "v0.113.0-rc.1"
19+
20+
- name: "Run updatecli only on monitored pipelines"
21+
run: updatecli compose apply --clean-git-branches=true --labels="monitoring:enabled" --experimental
22+
env:
23+
UPDATECLI_GITHUB_APP_CLIENT_ID: ${{ secrets.UPDATECLIBOT_APP_ID }}
24+
UPDATECLI_GITHUB_APP_PRIVATE_KEY: ${{ secrets.UPDATECLIBOT_APP_PRIVKEY }}
25+
UPDATECLI_GITHUB_APP_INSTALLATION_ID: ${{ secrets.UPDATECLIBOT_APP_INSTALLATION_ID }}
26+
UPDATECLI_UDASH_API_URL: ${{ secrets.UPDATECLI_UDASH_API_URL }}
27+
UPDATECLI_UDASH_ACCESS_TOKEN: ${{ secrets.UPDATECLI_UDASH_ACCESS_TOKEN }}
28+
UPDATECLI_UDASH_URL: ${{ secrets.UPDATECLI_UDASH_URL }}
29+
2130
- name: "Run updatecli only on existing pipelines"
2231
run: updatecli compose apply --clean-git-branches=true --existing-only=true --experimental
2332
env:

0 commit comments

Comments
 (0)