Skip to content

Commit

Permalink
chore(workflow): bump charts automatically when controller is released (
Browse files Browse the repository at this point in the history
  • Loading branch information
simenandre authored Mar 15, 2023
1 parent 3b5306d commit 7c4aff2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release-controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,28 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

bump-charts:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set appVersion
uses: mikefarah/yq@master
with:
cmd: yq -i '.appVersion = "${{ github.ref_name }}"' 'charts/caddy-ingress-controller/Chart.yaml'

- name: Set image tag
uses: mikefarah/yq@master
with:
cmd: yq -i '.image.tag = "${{ github.ref_name }}"' 'charts/caddy-ingress-controller/values.yaml'

- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
branch: update-charts
commit-message: Update caddy-ingress charts to ${{ github.ref_name }}
title: Update caddy-ingress charts to ${{ github.ref_name }}
body: |
This is an automated pull request to update charts.

0 comments on commit 7c4aff2

Please sign in to comment.