Skip to content
Open
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
10 changes: 2 additions & 8 deletions .github/workflows/updatecli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ on:
schedule:
# Run at 12:00 every Saterday every 14 days
- cron: 0 12 */14 * *

permissions: {}

jobs:
updatecli:
runs-on: ubuntu-latest
Expand All @@ -17,23 +15,19 @@ jobs:
uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
with:
persist-credentials: false

- name: "Setup updatecli"
uses: "updatecli/updatecli-action@2cc8e6d8e356d76b0280cdd03766c36596a0614e" # v3.0.0
uses: "updatecli/updatecli-action@7aab164eed4ee3bb279611182ba1e62a3a867640" # v3.1.1
with:
version: "v0.116.0"

version: "v0.116.1"
- name: "Set up Go"
uses: "actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c" # v6.4.0
with:
go-version-file: "go.mod"
id: go

- name: Install Swagger
run: "go install github.com/swaggo/swag/cmd/swag@$SWAGGER_VERSION"
env:
SWAGGER_VERSION: v1.16.6

- name: "Run updatecli"
run: updatecli compose apply --clean-git-branches=true --experimental
env:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/updatecli_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
name: Updatecli Test
on:
pull_request:

permissions:
contents: read

jobs:
updatecli:
runs-on: ubuntu-latest
Expand All @@ -14,23 +12,19 @@ jobs:
uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
with:
persist-credentials: false

- name: "Setup updatecli"
uses: "updatecli/updatecli-action@2cc8e6d8e356d76b0280cdd03766c36596a0614e" # v3.0.0
uses: "updatecli/updatecli-action@7aab164eed4ee3bb279611182ba1e62a3a867640" # v3.1.1
with:
version: "v0.116.0"

version: "v0.116.1"
- name: "Set up Go"
uses: "actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c" # v6.4.0
with:
go-version-file: "go.mod"

id: go
- name: Install Swagger
run: "go install github.com/swaggo/swag/cmd/swag@$SWAGGER_VERSION"
env:
SWAGGER_VERSION: v1.16.6

- name: "Test updatecli in dry-run mode"
run: "updatecli compose diff"
env:
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/updatecli_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ on:
push:
branches:
- main

permissions: {}

jobs:
updatecli:
runs-on: ubuntu-latest
Expand All @@ -19,23 +17,19 @@ jobs:
uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
with:
persist-credentials: false

- name: "Setup updatecli"
uses: "updatecli/updatecli-action@2cc8e6d8e356d76b0280cdd03766c36596a0614e" # v3.0.0
uses: "updatecli/updatecli-action@7aab164eed4ee3bb279611182ba1e62a3a867640" # v3.1.1
with:
version: "v0.116.0"

version: "v0.116.1"
- name: "Set up Go"
uses: "actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c" # v6.4.0
with:
go-version-file: "go.mod"
id: go

- name: Install Swagger
run: "go install github.com/swaggo/swag/cmd/swag@$SWAGGER_VERSION"
env:
SWAGGER_VERSION: v1.16.6

- name: "Run updatecli only on monitored pipelines"
run: updatecli compose apply --clean-git-branches=true --labels="monitor:active" --experimental
env:
Expand All @@ -45,7 +39,6 @@ jobs:
UPDATECLI_UDASH_API_URL: ${{ secrets.UPDATECLI_UDASH_API_URL }}
UPDATECLI_UDASH_ACCESS_TOKEN: ${{ secrets.UPDATECLI_UDASH_ACCESS_TOKEN }}
UPDATECLI_UDASH_URL: ${{ secrets.UPDATECLI_UDASH_URL }}

- name: "Run updatecli only on existing pipelines"
run: updatecli compose apply --clean-git-branches=true --existing-only=true --experimental
env:
Expand Down