Skip to content

updatecli

updatecli #1070

Workflow file for this run

name: updatecli
on:
workflow_dispatch:
push:
branches: [main]
schedule:
# Run every hour
- cron: "0 * * * *"
jobs:
updatecli:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: "Checkout"
uses: "actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8" # v6.0.1
- name: "Setup updatecli"
uses: "updatecli/updatecli-action@a93efa6052d12f3d77728350fe500c0ed74c169c" # v2
- uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
id: generate_token
if: github.ref == 'refs/heads/main'
with:
app-id: ${{ secrets.UPDATECLIBOT_APP_ID }}
private-key: ${{ secrets.UPDATECLIBOT_APP_PRIVKEY }}
- name: "Run updatecli"
if: github.ref == 'refs/heads/main'
run: "updatecli compose apply"
env:
UPDATECLI_GITHUB_USERNAME: ${{ secrets.UPDATECLI_BOT_GITHUB_ACTOR }}
UPDATECLI_GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}