-
Notifications
You must be signed in to change notification settings - Fork 4
33 lines (28 loc) · 986 Bytes
/
updatecli.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
name: Updatecli (Check for latest dependencies)
on:
push:
# Run once a week (to avoid alert fatigue)
schedule:
- cron: '0 2 * * 1' # Every Monday at 2am UTC
# Allow to be run manually
workflow_dispatch: null
# On each pull request
pull_request:
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Install Updatecli in the runner
uses: updatecli/updatecli-action@v2.57.0
- name: Run Updatecli in Dry Run mode
run: updatecli diff --config ./updatecli/updatecli.d --values ./updatecli/values.github-action.yaml
env:
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run Updatecli in Apply mode
if: github.ref == 'refs/heads/main'
run: updatecli apply --config ./updatecli/updatecli.d --values ./updatecli/values.github-action.yaml
env:
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}