Updatecli #11640
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" | |
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 }} |