Skip to content

Commit 0f7793f

Browse files
authored
chore: cleanup updatecli labels (#392)
Signed-off-by: Olivier Vernin <olivier@vernin.me>
1 parent bf81577 commit 0f7793f

5 files changed

Lines changed: 35 additions & 8 deletions

File tree

.github/workflows/updatecli.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,34 @@ on:
66
schedule:
77
# Run at 12:00 every Saterday every 14 days
88
- cron: 0 12 */14 * *
9+
10+
permissions: {}
11+
912
jobs:
1013
updatecli:
1114
runs-on: ubuntu-latest
1215
steps:
1316
- name: "Checkout"
1417
uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
18+
with:
19+
persist-credentials: false
20+
1521
- name: "Setup updatecli"
1622
uses: "updatecli/updatecli-action@2cc8e6d8e356d76b0280cdd03766c36596a0614e" # v3.0.0
1723
with:
18-
version: "v0.115.0"
24+
version: "v0.116.0"
25+
1926
- name: "Set up Go"
2027
uses: "actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c" # v6.4.0
2128
with:
2229
go-version-file: "go.mod"
2330
id: go
31+
2432
- name: Install Swagger
2533
run: "go install github.com/swaggo/swag/cmd/swag@$SWAGGER_VERSION"
2634
env:
2735
SWAGGER_VERSION: v1.16.6
36+
2837
- name: "Run updatecli"
2938
run: updatecli compose apply --clean-git-branches=true --experimental
3039
env:

.github/workflows/updatecli_test.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,35 @@
22
name: Updatecli Test
33
on:
44
pull_request:
5+
56
permissions:
67
contents: read
8+
79
jobs:
810
updatecli:
911
runs-on: ubuntu-latest
1012
steps:
1113
- name: "Checkout"
1214
uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
15+
with:
16+
persist-credentials: false
17+
1318
- name: "Setup updatecli"
1419
uses: "updatecli/updatecli-action@2cc8e6d8e356d76b0280cdd03766c36596a0614e" # v3.0.0
1520
with:
16-
version: "v0.115.0"
21+
version: "v0.116.0"
22+
1723
- name: "Set up Go"
1824
uses: "actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c" # v6.4.0
1925
with:
2026
go-version-file: "go.mod"
27+
2128
id: go
2229
- name: Install Swagger
2330
run: "go install github.com/swaggo/swag/cmd/swag@$SWAGGER_VERSION"
2431
env:
2532
SWAGGER_VERSION: v1.16.6
33+
2634
- name: "Test updatecli in dry-run mode"
2735
run: "updatecli compose diff"
2836
env:

.github/workflows/updatecli_update.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,44 @@ on:
88
push:
99
branches:
1010
- main
11+
12+
permissions: {}
13+
1114
jobs:
1215
updatecli:
1316
runs-on: ubuntu-latest
1417
steps:
1518
- name: "Checkout"
1619
uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
20+
with:
21+
persist-credentials: false
22+
1723
- name: "Setup updatecli"
1824
uses: "updatecli/updatecli-action@2cc8e6d8e356d76b0280cdd03766c36596a0614e" # v3.0.0
1925
with:
20-
version: "v0.115.0"
26+
version: "v0.116.0"
27+
2128
- name: "Set up Go"
2229
uses: "actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c" # v6.4.0
2330
with:
2431
go-version-file: "go.mod"
2532
id: go
33+
2634
- name: Install Swagger
2735
run: "go install github.com/swaggo/swag/cmd/swag@$SWAGGER_VERSION"
2836
env:
2937
SWAGGER_VERSION: v1.16.6
38+
3039
- name: "Run updatecli only on monitored pipelines"
31-
run: updatecli compose apply --clean-git-branches=true --labels="monitoring:enabled" --experimental
40+
run: updatecli compose apply --clean-git-branches=true --labels="monitor:active" --experimental
3241
env:
3342
UPDATECLI_GITHUB_APP_CLIENT_ID: ${{ secrets.UPDATECLIBOT_APP_ID }}
3443
UPDATECLI_GITHUB_APP_PRIVATE_KEY: ${{ secrets.UPDATECLIBOT_APP_PRIVKEY }}
3544
UPDATECLI_GITHUB_APP_INSTALLATION_ID: ${{ secrets.UPDATECLIBOT_APP_INSTALLATION_ID }}
3645
UPDATECLI_UDASH_API_URL: ${{ secrets.UPDATECLI_UDASH_API_URL }}
3746
UPDATECLI_UDASH_ACCESS_TOKEN: ${{ secrets.UPDATECLI_UDASH_ACCESS_TOKEN }}
3847
UPDATECLI_UDASH_URL: ${{ secrets.UPDATECLI_UDASH_URL }}
48+
3949
- name: "Run updatecli only on existing pipelines"
4050
run: updatecli compose apply --clean-git-branches=true --existing-only=true --experimental
4151
env:

updatecli/updatecli.d/swagger.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Update API Documentation
22

33
labels:
4-
event: release
5-
monitoring: enabled
4+
release: udash
5+
monitor: active
66

77
pipelineid: "venom"
88
actions:

updatecli/updatecli.d/swagger_version.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: "ci: bump Swag version"
22
pipelineid: "swagger"
33

44
labels:
5-
event: release
6-
monitoring: enabled
5+
release: udash
6+
monitor: active
77

88
actions:
99
default:

0 commit comments

Comments
 (0)