This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
Updatecli: Dependency Management #354
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Updatecli: Dependency Management" | |
on: | |
schedule: | |
# Runs at 12:00 | |
- cron: '0 12 * * *' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
jobs: | |
updatecli: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Used during the update of rancher/shell in prometheus-federator/shell | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.19.3' | |
# Used during the update of rancher/shell in prometheus-federator/shell | |
- name: Install Helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: 'v3.10.2' | |
- name: Install Updatecli | |
uses: updatecli/updatecli-action@v2 | |
- name: Apply Updatecli | |
# Never use '--debug' option, because it might leak the access tokens. | |
run: "updatecli apply --clean --config updatecli/updatecli.d/ --values updatecli/values.yaml" | |
env: | |
UPDATECLI_GITHUB_ACTOR: ${{ github.actor }} | |
UPDATECLI_GITHUB_TOKEN: ${{ secrets.SECURITY_UPDATECLI_AUTOMATION }} | |
UPDATECLI_GITHUB_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} |