Skip to content
Merged
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
7 changes: 6 additions & 1 deletion .github/workflows/updatecli.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: Updatecli
on:
release:
workflow_dispatch:
schedule:
# Run at 12:00 every 14 days
- cron: "0 12 */14 * *"
permissions: {}
jobs:
Expand All @@ -18,6 +18,11 @@
uses: "updatecli/updatecli-action@41b9c8d707830a9daebaeaa84c1b62d60b779564" # v3.6.0
with:
version: "v0.120.1"
- name: "Set up Node"
uses: "actions/setup-node@820762786026740c76f36085b0efc47a31fe5020" # v7.0.0
with:
node-version-file: "package.json"
id: node
- name: "Run updatecli"
run: updatecli compose apply --clean-git-branches=true --experimental
env:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/updatecli_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@ jobs:
uses: "updatecli/updatecli-action@41b9c8d707830a9daebaeaa84c1b62d60b779564" # v3.6.0
with:
version: "v0.120.1"
- name: "Set up Node"
uses: "actions/setup-node@820762786026740c76f36085b0efc47a31fe5020" # v7.0.0
with:
node-version-file: "package.json"
id: node
- name: "Test updatecli in dry-run mode"
run: "updatecli compose diff"
env:
# This step is executed in untrusted context. We use a GitHub token with minimal permissions.
# This step is executed in untrusted context. We use a token with minimal permissions.
UPDATECLI_GITHUB_USERNAME: ${{ github.actor }}
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33 changes: 19 additions & 14 deletions .github/workflows/updatecli_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,25 @@
name: Updatecli - Update
on:
workflow_dispatch:
schedule:
# Run daily at 03:00
- cron: "0 3 * * *"
push:
branches:
- main
schedule:
- cron: "0 3 * * *"
permissions: {}
jobs:
updatecli:
name: "Updatecli - ${{ matrix.target_name }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 1
matrix:
include:
- target_name: "existing pipelines"
apply_args: "--existing-only=true"
- target_name: "monitored pipelines"
apply_args: "--labels=monitor:active"
steps:
- name: "Checkout"
uses: "actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1" # v7.0.1
Expand All @@ -21,17 +30,13 @@ jobs:
uses: "updatecli/updatecli-action@41b9c8d707830a9daebaeaa84c1b62d60b779564" # v3.6.0
with:
version: "v0.120.1"
- name: "Run updatecli only on monitored pipelines"
run: updatecli compose apply --clean-git-branches=true --labels="monitor:active" --experimental
env:
UPDATECLI_GITHUB_APP_CLIENT_ID: ${{ secrets.UPDATECLIBOT_APP_ID }}
UPDATECLI_GITHUB_APP_PRIVATE_KEY: ${{ secrets.UPDATECLIBOT_APP_PRIVKEY }}
UPDATECLI_GITHUB_APP_INSTALLATION_ID: ${{ secrets.UPDATECLIBOT_APP_INSTALLATION_ID }}
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
- name: "Set up Node"
uses: "actions/setup-node@820762786026740c76f36085b0efc47a31fe5020" # v7.0.0
with:
node-version-file: "package.json"
id: node
- name: "Run updatecli"
run: updatecli compose apply --clean-git-branches=true ${{ matrix.apply_args }} --experimental
env:
UPDATECLI_GITHUB_APP_CLIENT_ID: ${{ secrets.UPDATECLIBOT_APP_ID }}
UPDATECLI_GITHUB_APP_PRIVATE_KEY: ${{ secrets.UPDATECLIBOT_APP_PRIVKEY }}
Expand Down