Skip to content

Updatecli

Updatecli #13331

Workflow file for this run

---
name: "Updatecli"
on:
# Trigger Updatecli on changes done on Master
push:
branches:
- master
# Trigger Updatecli on a hourly basis
schedule:
- cron: '0 * * * *'
# Trigger Updatecli manually when needed
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
updatecli:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/master' && github.repository_owner == 'civo' }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Updatecli in the runner
uses: updatecli/updatecli-action@v2
- name: Apply
run: "updatecli compose apply --file .github/updatecli/update-compose.yaml"
env:
UPDATECLI_GITHUB_ACTOR: ${{ github.actor }}
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}