updatecli #11476
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: | |
workflow_dispatch: | |
push: | |
branches: | |
- v1 | |
schedule: | |
# Run once a day | |
- cron: '*/10 * * * *' | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
updatecli: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: tibdex/[email protected] | |
id: generate_token | |
with: | |
app_id: ${{ secrets.FMSC_BOT_GITHUB_APP_ID }} | |
private_key: ${{ secrets.FMSC_BOT_GITHUB_APP_PRIVATE_KEY }} | |
- name: "Setup updatecli" | |
uses: "updatecli/updatecli-action@v2" | |
- name: "Run updatecli in dryrun" | |
run: "updatecli diff --config ./updatecli/updatecli.d --experimental --clean=true" | |
env: | |
UPDATECLI_GITHUB_ACTOR: ${{ github.actor }} | |
UPDATECLI_GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | |
- name: "Run updatecli" | |
if: github.ref == 'refs/heads/v1' | |
run: "updatecli apply --config ./updatecli/updatecli.d --experimental --clean=true" | |
env: | |
UPDATECLI_GITHUB_ACTOR: ${{ github.actor }} | |
UPDATECLI_GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | |