Update image tags and Helm versions #5
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: Update Mojaloop images | |
on: | |
workflow_dispatch: | |
inputs: | |
image: | |
description: Published image | |
tag: | |
description: Updated tag | |
schedule: | |
- cron: '0 0 * * *' | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
updatecli: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install updatecli | |
uses: updatecli/updatecli-action@v2 | |
- name: Update image tags | |
run: updatecli apply | |
- name: Create pull request | |
id: create_pr | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
commit-message: Update Mojaloop image versions | |
title: Update Mojaloop image versions | |
- name: Auto merge pull request | |
if: steps.create_pr.outputs.pull-request-number | |
uses: peter-evans/enable-pull-request-automerge@v3 | |
with: | |
pull-request-number: ${{ steps.create_pr.outputs.pull-request-number }} | |
merge-method: squash |