Skip to content

updatecli

updatecli #14492

Workflow file for this run

name: updatecli
on:
release:
workflow_dispatch:
push:
branches: [v1]
pull_request:
branches: [v1]
schedule:
# Run every day
- cron: '0 0 * * *'
permissions: {}
jobs:
updatecli:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: 'Checkout'
uses: 'actions/[email protected]'
- name: 'Setup updatecli'
uses: 'updatecli/updatecli-action@v2'
- name: 'Run updatecli in dryrun'
run: 'updatecli compose diff'
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/[email protected]
id: generate_token
if: github.ref == 'refs/heads/v1'
with:
app-id: ${{ secrets.FMSC_BOT_GITHUB_APP_ID }}
private-key: ${{ secrets.FMSC_BOT_GITHUB_APP_PRIVATE_KEY }}
- name: 'Run updatecli'
if: github.ref == 'refs/heads/v1'
run: 'updatecli compose apply'
env:
GITHUB_ACTOR: 'fsl-bot'
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}