From 7c4aff2a8e6b840268a485a8c9458481b190ea1a Mon Sep 17 00:00:00 2001 From: "Simen A. W. Olsen" Date: Wed, 15 Mar 2023 18:06:05 +0100 Subject: [PATCH] chore(workflow): bump charts automatically when controller is released (#119) --- .github/workflows/release-controller.yml | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/release-controller.yml b/.github/workflows/release-controller.yml index 265a558..867f52f 100644 --- a/.github/workflows/release-controller.yml +++ b/.github/workflows/release-controller.yml @@ -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.