GitHub Action that runs Updatecli.
Updatecli is an automation engine that allows you to define custom update pipelines.
A Quick-start is available on www.updatecli.io/docs/prologue/quick-start
Add the following steps to your worfkow
- name: Run Updatecli pipeline
uses: updatecli/updatecli-action@v1
with:
command: "diff --config updatecli.d --values values.yaml"
env:
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}| Name | Description | Default |
|---|---|---|
| command | The updatecli command | apply |
| flags | The flags provided to an updatecl command | nil |
More detailed documentation is available on updatecli/docs/automate/github_action
WARNING: Do not enable --debug mode in Github Action as you may leak credentials.
name: updatecli
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
# Run once a day
- cron: '0 0 * * *'
# Different write permission may be needed
permissions:
contents: write
pull-requests: write
jobs:
updatecli:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Diff
uses: updatecli/updatecli-action@v1
with:
command: diff
env:
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Apply
uses: updatecli/updatecli-action@v1
env:
UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}This is a community-oriented project, all contributions are greatly appreciated.
Here is a non-exhaustive list of contributions:
- ⭐️ our main GitHub repository updatecli/updatecli
- Propose a new feature request on any of updatecli repositories.
- Highlight an existing feature request with ":thumbsup:" on any of the updatecli repositories.
- Contribute to any repository in the updatecli organization
- Share the love
MIT. See LICENSE for more details.